public static class JSONPathParser.FieldSpec extends Object
Constructor and Description |
---|
FieldSpec(JSONPathParser.FieldType type,
String name,
String expr)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getExpr() |
String |
getName() |
JSONPathParser.FieldType |
getType() |
public FieldSpec(JSONPathParser.FieldType type, String name, String expr)
type
- Specifies how this field should be retrieved.name
- Name of the field, used as the key in the Object map returned by the parser.
For ROOT fields, this must match the field name as it appears in the JSON document.expr
- Only used by PATH type fields, specifies the JsonPath expression used to access the field.public JSONPathParser.FieldType getType()
public String getName()
public String getExpr()
Copyright © 2011–2017. All rights reserved.