@JsonCreator public static JSONPathFieldSpec fromString(String name) { return JSONPathFieldSpec.createRootField(name); }
public Parser getNestedParser() fields.add(JSONPathFieldSpec.createRootField("ts")); fields.add(JSONPathFieldSpec.createRootField("d1")); fields.add(JSONPathFieldSpec.createNestedField("ae1[2].e1.d2", "$.ae1[2].e1.d2")); fields.add(JSONPathFieldSpec.createRootField("m3"));
public Parser getJqParser() fields.add(JSONPathFieldSpec.createRootField("ts")); fields.add(JSONPathFieldSpec.createRootField("d1")); fields.add(JSONPathFieldSpec.createJqField("e1.d1", ".e1.d1")); fields.add(JSONPathFieldSpec.createJqField("e1.d2", ".e1.d2")); fields.add(JSONPathFieldSpec.createJqField("ae1[2].e1.d2", ".ae1[2].e1.d2")); fields.add(JSONPathFieldSpec.createRootField("m3")); fields.add(JSONPathFieldSpec.createJqField("e3.m1", ".e3.m1")); fields.add(JSONPathFieldSpec.createJqField("e3.m2", ".e3.m2"));
fields.add(JSONPathFieldSpec.createNestedField("metA", "$.met.a")); fields.add(JSONPathFieldSpec.createNestedField("missing", "$.nonexistent.nested.field")); fields.add(JSONPathFieldSpec.createRootField("timestamp")); fields.add(JSONPathFieldSpec.createRootField("foo.bar1"));
fields.add(JSONPathFieldSpec.createNestedField("baz0", "$.baz[0]")); fields.add(JSONPathFieldSpec.createNestedField("hey0barx", "$.hey[0].barx")); fields.add(JSONPathFieldSpec.createRootField("timestamp")); fields.add(JSONPathFieldSpec.createRootField("foo.bar1")); fields.add(JSONPathFieldSpec.createJqField("foobar1", ".foo.bar1")); fields.add(JSONPathFieldSpec.createJqField("baz0", ".baz[0]"));
@JsonCreator public static JSONPathFieldSpec fromString(String name) { return JSONPathFieldSpec.createRootField(name); }