2010年5月13日 星期四

Parsing JSON from external File in Java

JSON is an easy to construct and easy to test format which can be edited in every text editor and test by any web browsers. It is a good option for software developer to consider JSON as a format for storing configuration information.


If you are a Java Development and you wish to use an external file for keeping the configuration of your application, you may consider storing it in JSON. If you don't know what JSON look like you can search a lot of resources form Google. Here I will introduces Rhino as a tools for Java Developers to obtain (parse) the value in JSON format.

The steps in creating Java Class for parsing JSON from external file can be found in the Rhino-Tutorial site.

3 則留言: