Merge branch 'master' of schwann.lnvpn.de:haraldwolff/sharp-json

master
Harald Wolff 2017-11-23 13:06:08 +01:00
commit 580cf6a1d8
1 changed files with 22 additions and 0 deletions

22
README.md 100644
View File

@ -0,0 +1,22 @@
# sharp-json
A lightweight JSON implementation for Mono/.NET
## Usage
Use the base type *sharp.json.JSON* to represent JSON variables.
import sharp.json;
...
JSON n = 123.45;
JSON s = "Hello World!"
Console.WriteLine("A number: {0}",n.ToString());
Console.WriteLine("A String: {0}",s.ToString());
To parse JSON from text you may use
JSONParser parser = new JSONParser();
JSON json = parser.Parse("[ 0, 1, 2, 3 ]");
Console.WriteLine("json: {0}",json);