My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Project Information
Members

In house JSON Serializer with JavaScript RPC

Rest is being fleshed out.

Serializes methods by using the declared fields on the Java Object being serialized.

Person p = new Person("Justin");
p.setAddress("123 Tree Ln");
p.setPhone(new PhoneNumber("123-123-1234"));

JSONSerializer jsonSerializer = new JSONSerializer(); jsonSerializer.serialize(p);

will produce

{
class: "Person",
address: "123 Tree Ln",
phone: {number:"123-123-1234"}
}
Powered by Google Project Hosting