Go to file
Harald Wolff-Thobaben b4fdddd69e update .gitignore 2020-11-18 00:38:57 +01:00
.vs/sharp.json/xs Added Dictionary<,> mapping support 2019-09-01 19:33:28 +02:00
attributes WIP 2019-08-29 14:16:55 +02:00
mapping Cleanup 2020-11-18 00:36:45 +01:00
.gitignore update .gitignore 2020-11-18 00:38:57 +01:00
JSONArray.cs WIP 2019-08-29 14:16:55 +02:00
JSONMappedObject.cs Cleanup 2020-11-18 00:36:45 +01:00
JSONNumber.cs Cleanup 2020-11-18 00:36:45 +01:00
JSONObject.cs Cleanup 2020-11-18 00:36:45 +01:00
JSONParser.cs Cleanup 2020-11-18 00:36:45 +01:00
JSONSpecial.cs Implement ToNative() on JSONSpecial 2019-10-04 20:10:00 +02:00
JSONString.cs Fixed String escaping 2019-08-30 12:41:45 +02:00
JSONTypes.cs V2 Implementation 2019-08-07 23:02:00 +02:00
JSONValue.cs JSONValue.ToNative() added 2019-08-19 14:14:15 +02:00
README.md „README.md“ ändern 2020-11-18 00:28:57 +01:00
ln.json.csproj Cleanup 2020-11-18 00:36:45 +01:00

README.md

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