I try to imitate an example where they use hard-coded JSON
{ "page": 1, "total": 1, "records": 2, "rows": [ {"id": 1, "cell": ["1", "Super Item", "300", 0, null, false, false]}, {"id": 2, "cell": ["2", "Item 1", "100", 1, 1, false, false]}, {"id": 3, "cell": ["3", "Sub Item 1", "50", 2, 2, true, true]}, {"id": 4, "cell": ["4", "Sub Item 2", "25", 2, 2, false, false]}, {"id": 5, "cell": ["5", "Sub-sub Item 1", "25", 3, 4, true, true]}, {"id": 6, "cell": ["6", "Sub Item 3", "25", 2, 2, true, true]}, {"id": 7, "cell": ["7", "Item 2", "200", 1, 1, false, false]}, {"id": 8, "cell": ["8", "Sub Item 1", "100", 2, 7, false, false]}, {"id": 9, "cell": ["9", "Sub-sub Item 1", "50", 3, 8, true, true]}, {"id": 10, "cell": ["10", "Sub-sub Item 2", "50", 3, 8, true, true]}, {"id": 11, "cell": ["11", "Sub Item 2", "100", 2, 7, true, true]} ] }
but I need to generate this from C #. Are there any suggestions on the best way to create this above in C #?