A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Cinchoo/ChoETL/wiki/QuickJSONLoad below:

QuickJSONLoad · Cinchoo/ChoETL Wiki · GitHub

To load JSON file, use ChoJSONReader component to parse it. Sample below shows how to load JSON file (Emp.json)

[
    {
    "Id": 1,
    "Name": "Mark"
    },
    {
    "Id": 2,
    "Name": "Tom"
    }
]
foreach (dynamic e in new ChoJSONReader("Emp.json"))
    Console.WriteLine("Id: " + e.Id + " Name: " + e.Name);
var reader = new ChoJSONReader("Emp.json");
dynamic rec;
 
while ((rec = reader.Read()) != null)
    Console.WriteLine("Id: " + e.Id + " Name: " + e.Name);
public class Employee
{
    public int Id { get; set; }
    public string Name { get; set; }
}
foreach (var e in new ChoJSONReader<Employee>("Emp.json"))
    Console.WriteLine("Id: " + e.Id + " Name: " + e.Name);

For more information, please visit below article

Convert JSON to CSV file


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4