* @return the JSON format string representing the data in the the Java
* object.
* @throws MarshallException If marshalling fails.
*/
public String toJSON(Object obj) throws MarshallException {
SerializerState state = new SerializerState();
// todo: what do we do about fix ups here?
Object json = marshall(state, null, obj, "result");
// todo: fixups will be in state.getFixUps() if someone wants to do something with them...