Go to file
Harald Wolff 9b2d2fe6b5 JSONMapper 2019-08-08 00:34:16 +02:00
.vs/sharp.json/xs JSONMapper 2019-08-08 00:34:16 +02:00
Properties V2 Implementation 2019-08-07 23:02:00 +02:00
json.test JSONMapper 2019-08-08 00:34:16 +02:00
mapping JSONMapper 2019-08-08 00:34:16 +02:00
.gitignore V2 Implementation 2019-08-07 23:02:00 +02:00
JSONArray.cs JSONMapper 2019-08-08 00:34:16 +02:00
JSONNumber.cs JSONMapper 2019-08-08 00:34:16 +02:00
JSONObject.cs JSONMapper 2019-08-08 00:34:16 +02:00
JSONParser.cs V2 Implementation 2019-08-07 23:02:00 +02:00
JSONSpecial.cs V2 Implementation 2019-08-07 23:02:00 +02:00
JSONString.cs V2 Implementation 2019-08-07 23:02:00 +02:00
JSONTypes.cs V2 Implementation 2019-08-07 23:02:00 +02:00
JSONValue.cs V2 Implementation 2019-08-07 23:02:00 +02:00
README.md V2 Implementation 2019-08-07 23:02:00 +02:00
ln.json.csproj JSONMapper 2019-08-08 00:34:16 +02:00
sharp.json.csproj.user Initial Commit 2017-10-26 16:41:14 +02:00
sharp.json.sln V2 Implementation 2019-08-07 23:02:00 +02:00

README.md

sharp-json

A lightweight JSON implementation for Mono/.NET

Usage

Use the base type ln.json.JSON to represent JSON variables.

import ln.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);