Download Latest Version json4j.jar (10.5 kB)
Email in envelope

Get an email when there's a new version of json4java

Home
Name Modified Size InfoDownloads / Week
ReadMe 2016-12-29 964 Bytes
json4j.jar 2016-12-29 10.5 kB
Totals: 2 Items   11.5 kB 0
How to write JSON
-----------------

    String com.pp040773.json4j.JsonWriter.write(Object json);

    'json' can be

        A Map<String,Object>        which is the {} json counterpart

        A List<Object>              which is the [] json counterpart

        A String                    which is the String json counterpart

        A Number ( long , ... )     which is the json number counterpart

        A boolean                   which is the json number counterpart

        null                        which is the json null counterpart

How to read JSON
-----------------

    Object json = com.pp040773.json4j.JsonReader.read(String jsonExpression);

    json can be any of the type described in the 'How to write JSON' section depending on 'jsonExpression'



Advanced:
-----------------

    public JsonReader(boolean sorted)

        Will sort entries in the Map which garantees test case will be reproductible.
Source: ReadMe, updated 2016-12-29