Package org.sf.bee.commons.remoting.jrpc.serializer

Examples of org.sf.bee.commons.remoting.jrpc.serializer.SerializerState


        try {
            json = tok.nextValue();
        } catch (JSONException e) {
            throw new UnmarshallException("couldn't parse JSON", e);
        }
        SerializerState state = new SerializerState();
        return this.unmarshall(state, null, json);
    }
View Full Code Here


     * @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...
View Full Code Here

       return getInstance().fromJSON(text);
    }

    public static  Object deserialize(final Class returnClass,
            final Object json) throws Exception {
        return deserialize(new SerializerState(), returnClass, json);
    }
View Full Code Here

TOP

Related Classes of org.sf.bee.commons.remoting.jrpc.serializer.SerializerState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.