@Test @DisplayName("$.* : root is list, objects are rows, different property names") public void testListOfObjects_Sparse() { String json = "[{\"a\":1, \"b\":\"B\"},{\"b\":\"C\"},{\"a\":3, \"c\":\"D\"}]"; DataFrame df = Json.loader().load(json); new DataFrameAsserts(df, "a", "b", "c") .expectHeight(3) .expectRow(0, 1, "B", null) .expectRow(1, null, "C", null) .expectRow(2, 3, null, "D"); }
public DataFrame load(String json) { DocumentContext context = JsonPath.parse(json, buildJSONPathConfiguration()); return load(context); }
JsonLoader { public DataFrame load(String json) { DocumentContext context = JsonPath.parse(json, buildJSONPathConfiguration()); return load(context); } }
JsonLoader { public DataFrame load(String json) { DocumentContext context = JsonPath.parse(json, buildJSONPathConfiguration()); return load(context); } JsonLoader(); }
JsonLoader { public DataFrame load(String json) { DocumentContext context = JsonPath.parse(json, buildJSONPathConfiguration()); return load(context); } JsonLoader(); JsonLoader pathExpression(String pathExpression); JsonLoader nullsForMissingLeafs(); DataFrame load(String json); DataFrame load(Reader reader); }
JsonLoader { public DataFrame load(String json) { DocumentContext context = JsonPath.parse(json, buildJSONPathConfiguration()); return load(context); } JsonLoader(); JsonLoader pathExpression(String pathExpression); JsonLoader nullsForMissingLeafs(); DataFrame load(String json); DataFrame load(Reader reader);  }