Skip to main content

Posts

Showing posts from August, 2020

JSON in salesforce apex

 JSONGenerator Class some frequently used Methods: Method             Description getAsString       Returns the generated JSON content, and also this method closes the JSON generator if it isn’t closed already. writeBooleanField Writes a field name and value pair using the specified field name and Boolean value. writeDateField    Writes a field name and value pair using the specified field name and date value. The date value is written in the ISO-8601 format. writeEndArray     Writes the ending marker of a JSON array (‘]’). writeEndObject    Writes the ending marker of a JSON object (‘}’). writeNullField    Writes a field name and value pair using the specified field name and the JSON null literal value. writeNumberField  Writes a field name and value pair using the specified field name and decimal, double, integer, long value. writeStartArray   Writes the starting mar...