String jstr="{'json':'jsonvalue','bool':true,'int':1,'double':'20.5'}"; JSONObject json=JSONObject.fromObject(jstr);