public static String toJSON ( Object value , ObjectMapper mapper ) { try { return mapper . writeValueAsString ( value ) ; } catch ( IOException ex ) { throw new FacebookException ( ex ) ; } }
Converts the object to a JSON string using the mapper