Cn anyone show a example of generating a JSOn from a bean class using JSON-LIB? I am not able to find a example to understand this.
Thanks
How about?
MyBean mb = new MyBean(); JSON json = JSONObject.fromObject(mb);
How about?