Skip to content
Snippets Groups Projects
Commit 79a1975c authored by Jonas Leder's avatar Jonas Leder
Browse files

parse json from input

parent 514307c3
Branches
No related tags found
No related merge requests found
using Newtonsoft.Json.Linq;
Console.WriteLine("Please insert the JSON, then press CTRL & D");
//string input = Console.In.ReadToEnd();
string input = @"{
'CPU': 'Intel',
'Speed': 100,
'Overclocked': true,
Drives: [
'DVD read/writer',
'500 gigabyte hard drive'
]
}";
string input = Console.In.ReadToEnd();
string ParseJsonArray(JArray json, int indent = 0)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment