@Test @DisplayName("$.* : root is list, objects are rows") public void testListOfObjects() { String json = "[{\"a\":1, \"b\":\"B\"},{\"a\":2, \"b\":\"C\"},{\"a\":3, \"b\":\"D\"}]"; DataFrame df = Json.loader().load(json); new DataFrameAsserts(df, "a", "b") .expectHeight(3) .expectRow(0, 1, "B") .expectRow(1, 2, "C") .expectRow(2, 3, "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);  }