Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Göransson committed Oct 18, 2013
1 parent 01b563f commit f0f23f0
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions README.md
Expand Up @@ -8,7 +8,7 @@ Since the beta release (8) of Processing 2.0 (February 24) JSON is part of the c

# Installation in Processing

1. Download the latest version [here](http://santiclaws.se/json4processing/json4processing-0.1.7.zip)
1. Download the latest (0.1.8) version [here](http://santiclaws.se/json4processing/json4processing-0.1.8.zip)
2. Extract the zip-file into your /sketchbook/libraries/ folder.
3. Restart Processing IDE

Expand Down Expand Up @@ -97,6 +97,29 @@ arr.append(third);
println(arr);
```

**Parson JSON from websource**

``` java
/**
* Creating a JSON array of objects
*/
JSON first = JSON.createObject();
first.setInt("val", 5);

JSON sec = JSON.createObject();
sec.setFloat("val", 5.5);

JSON third = JSON.createObject();
third.setString("val", "a");

JSON arr = JSON.createArray();
arr.append(first);
arr.append(sec);
arr.append(third);

println(arr);
```

# Original README

JSON in Java [package org.json]
Expand Down Expand Up @@ -166,4 +189,4 @@ XML.java: XML provides support for converting between JSON and XML.

JSONML.java: JSONML provides support for converting between JSONML and XML.

XMLTokener.java: XMLTokener extends JSONTokener for parsing XML text.
XMLTokener.java: XMLTokener extends JSONTokener for parsing XML text.

0 comments on commit f0f23f0

Please sign in to comment.