From 197170d72919e7bb3e9553d918fc9d9618bf92ec Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Fri, 3 Nov 2017 13:20:23 +0100 Subject: [PATCH] Added preliminary README.md --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..2ffff17 --- /dev/null +++ b/README.md @@ -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); +