Существуют разные варианты представления данных в формате JSON (или в любом формате).
Вот пример того, как я хотел бы представлять данные в первоначально опубликованном вопросе:
{ "PHC": [{"CEP": {"Status": "Done", "Notes": "Inspector remarks here"}}], "PVC": [{"CFP": {"Status": "Done", "Notes": "Inspector remarks here"}, "CIL": {"Status": "Done", "Notes": "Inspector remarks here"}, "CLL": {"Status": "Done", "Notes": "Inspector remarks here"}, "CPC": {"Status": "Done", "Notes": "Inspector remarks here"}, "CPQ": {"Status": "Done", "Notes": "Inspector remarks here"}, "CPS": {"Status": "Done", "Notes": "Inspector remarks here"}, "CPA": {"Status": "Done", "Notes": "Inspector remarks here"}}], "CovTest": [{"FrontCT": {"Status": "Done", "Notes": "Inspector remarks here"}}], "OpCheck": [{"": {"Status": "Done", "Notes": "Inspector remarks here"}}] }
(В основном это сокращенно, потому что я написал это на основе данных, представленных в виде изображения, и я не хотел транскрибировать все. Надеюсь, вы поняли идею.)
...
И это точно такой же JSON (за исключением того, что текст теперь копируется из обновленного вопроса), но предварительно проверенный и проверенный с использованием более стандартного форматирования пробелов:
{ "Physical check": [{ "Check existing printer": { "Status": "checked", "Notes": "Inspector remarks here" } }], "Printer visual check": [{ "Check front of printer": { "Status": "checked", "Notes": "Inspector remarks here" }, "Check ink levels": { "Status": "checked", "Notes": "Inspector remarks here" }, "Check led lights": { "Status": "checked", "Notes": "Inspector remarks here" }, "Check power cord": { "Status": "checked", "Notes": "Inspector remarks here" }, "Check print quality": { "Status": "checked", "Notes": "Inspector remarks here" }, "Check paper size": { "Status": "checked", "Notes": "Inspector remarks here" }, "Check paper amount": { "Status": "checked", "Notes": "Inspector remarks here" } }], "Covers test": [{ "Front cover test": { "Status": "checked", "Notes": "Inspector remarks here" } }], "Operative check": [{ "": { "Status": "checked", "Notes": "Inspector remarks here" } }] }