JSON (JavaScript Object Notation) is a light-weight data interchange format. JSON is easy for humans to read and write. It is also very easy to code with them and parse. JSON is also language independent.
![]() |
| An object is an un-ordered set of name/value pairs |
![]() |
| An array is an ordered set of values |
JSON With Android
Android includes a library called org.json. Developers can easily use this library to work with JSON. this package contains 4 main classes.
Android includes a library called org.json. Developers can easily use this library to work with JSON. this package contains 4 main classes.
- JSONArray
- JSONObject
- JSONStringer
- JSONTokener
Try the example appears at this link (http://www.vogella.de/articles/AndroidJSON/article.html) It gives you a good intro of how to use JSON with your mobile application. It is very straight forward and most important thing is you have nothing much to learn.


No comments:
Post a Comment