Search code examples
jsongwtsmartgwt

GWT : JSON Parsing in client side and server side with same api


We use org.json api to parse json on server side and GWT JsonParser to parse JSON on client side. Is there a api that we can use that can be used on both the client side and server side?


Solution

  • You are looking for GWT AutoBean: http://code.google.com/p/google-web-toolkit/wiki/AutoBean

    With AutoBeans you juset define the structure of your JSON and the GWT Compiler handles the rest.