Quickstart

Some examples both for sample programs and composite objects that can be stored.
A typical program:

Object o=new SomeObject();

String jsonString=JSON.getJSONString(o);

// do something with the string

SomeObject so=(SomeObject)JSON.getObject(jsonString);

Example object:

public class SomeObject {

private HashMap map;

private String param1;

public HashMap getMap() {

return map;

}

public void setMap(HashMap map) {

this.map = map;

}

public void setString(String s){

this.param1=s;

}

public String getString(){

return param1;

}

}