public void writeValue ( String name , Object value , Class knownType ) { try { writer . name ( name ) ; } catch ( IOException ex ) { throw new JsonException ( ex ) ; } writeValue ( value , knownType , null ) ; }
Writes the value as a field on the current JSON object writing the class of the object if it differs from the specified known type .