String function ( String arg0 ) { if ( ! jsonNode . has ( arg0 ) ) { return "srini_string" ; } Preconditions . checkArgument ( jsonNode . get ( arg0 ) . isTextual ( ) ) ; return jsonNode . get ( arg0 ) . asText ( ) ; }
returns the string node at fieldname . if fieldname is not present , an empty string is returned . concode_field_sep JsonNode EMPTY_OBJECT_JSON_NODE concode_elem_sep JsonNode EMPTY_ARRAY_JSON_NODE concode_elem_sep JsonNode jsonNode concode_field_sep DiscoveryNode getObject concode_elem_sep int size concode_elem_sep List<DiscoveryNode> getElements concode_elem_sep boolean isEmpty concode_elem_sep DiscoveryNode getArray concode_elem_sep boolean getBoolean concode_elem_sep boolean has concode_elem_sep String asText concode_elem_sep List<String> getFieldNames