Go to file
Harald Wolff f8e055c3c8
ln.build - build0.waldrennach.l--n.de build job pending Details
release 1.0.2
2020-12-12 20:17:16 +01:00
.vs/sharp.json/xs Added Dictionary<,> mapping support 2019-09-01 19:33:28 +02:00
ln.json release 1.0.2 2020-12-12 20:17:16 +01:00
ln.json.tests fix bug in JSONMapper triggered by serializing enums based on smaller types then int (e.g. ushort) 2020-12-12 20:16:54 +01:00
.gitignore Updated build.ln 2020-12-09 14:48:59 +01:00
README.md „README.md“ ändern 2020-11-18 00:28:57 +01:00
build.ln Updated build.ln 2020-12-09 14:48:59 +01:00
ln.json.sln .sln reorganization 2020-11-25 23:23:46 +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);