JSON Overivew
JSON Overivew
We have not yet spoken about AJAX --- revisit this again
after you have learned about AJAX
Why is JSON better suited for AJAX?
string java.lang.String
number java.lang.Number
true|false java.lang.Boolean
null null
array java.util.List
object java.util.Map
JSON.simple maps entities from the left side to the right side while
decoding or parsing, and maps entities from the right to the left while
encoding.
On decoding, the default concrete class
of java.util.List isorg.json.simple.JSONArray and the default concrete
class of java.util.Map isorg.json.simple.JSONObject.
JSON reading in Java example
http://www.tutorialspoint.com/json/json_java_example.ht
m
There is an interface called
JSONParser in javax.json.stream you
can implement
javax.json.stream
Interface JsonParser