< V > V fromJson ( final DataTypeDescriptor < V > descriptor , String value ) { if ( value == null ) { return null ; } TypeEnum type = descriptor . getType ( ) ; if ( type == TypeEnum . STRING || type == TypeEnum . DATETIME || type == TypeEnum . ENUM ) { if ( ! value . startsWith ( "\"" ) && ! value . endsWith ( "\"" ) ) { // Return the quotes to parse a value as valid json strings. value = "\"" + value + "\"" ; } } return format . read ( value , descriptor ) ; }
Parses an argument from an unquoted JSON string .