public JsonNode toJson ( ) { ObjectNode node = new ObjectMapper ( ) . createObjectNode ( ) ; node . put ( "code" , code ) ; if ( format != null ) { node . put ( "format" , format ) ; } return node ; }
Returns this column in JSON representation .