|
Provides the ability to build a JSON string from platform objects.
Method DetailJSONBuffer endArray() Ends an array node. Returns: JSONBuffer Since: 04-29-2022 JSONBuffer endObject() Ends an object node. Returns: JSONBuffer Since: 04-29-2022 JSONBuffer key(String name) Starts an object node with the given name.
Parameters:
Returns: JSONBuffer Since: 04-29-2022 JSONBuffer preserveType(boolean boolean) If true, Data operations will attempt to have type guessed and added accordingly (rather than being a string always).
Parameters:
Returns: JSONBuffer Since: 09-22-2023 JSONBuffer set(String key, String value) Adds the key/value pair to the buffer.
Parameters:
Returns: JSONBuffer Since: 04-29-2022 JSONBuffer setBoolean(String name, Boolean value) Adds the key/value pair to the buffer.
Parameters:
Returns: JSONBuffer Since: 04-29-2022 JSONBuffer setBooleans(Boolean[] items) Adds the item(s) to the array node in this buffer.
Parameters:
Returns: JSONBuffer Since: 11-15-2023 JSONBuffer setData(Data data) Adds the Data to this buffer.
Parameters:
Returns: JSONBuffer Since: 06-22-2022 JSONBuffer setData(String name, Data data) Adds the Data to this buffer with the given key.
Parameters:
Returns: JSONBuffer Since: 06-22-2022 JSONBuffer setDataList(DataList datalist) Adds the datalist to the buffer.
Parameters:
Returns: JSONBuffer Since: 09-22-2023 JSONBuffer setDate(String name, Date value) Adds the key/value pair to the buffer.
Parameters:
Returns: JSONBuffer Since: 04-29-2022 JSONBuffer setDates(Date[] items) Adds the item(s) to the array node in this buffer.
Parameters:
Returns: JSONBuffer Since: 11-15-2023 JSONBuffer setDouble(String name, Number double) Adds the key/value pair to the buffer.
Parameters:
Returns: JSONBuffer Since: 04-29-2022 JSONBuffer setInt(String name, Number value) Adds the key/value pair to the buffer.
Parameters:
Returns: JSONBuffer Since: 04-29-2022 JSONBuffer setInts(Number[] items) Adds the item(s) to the array node in this buffer.
Parameters:
Returns: JSONBuffer Since: 11-15-2023 JSONBuffer setLong(String name, Number value) Adds the key/value pair to the buffer.
Parameters:
Returns: JSONBuffer Since: 04-29-2022 JSONBuffer setPayload(Payload payload) Adds the payload to the buffer.
Parameters:
Returns: JSONBuffer Since: 09-22-2023 JSONBuffer setRecord(DataViewRecord record) Adds the DataViewRecord to this buffer, preserving field types.
Parameters:
Returns: JSONBuffer Since: 05-09-2022 JSONBuffer setRecord(String name, DataViewRecord record) Adds the DataViewRecord to this buffer with the given key, preserving field types.
Parameters:
Returns: JSONBuffer Since: 05-09-2022 JSONBuffer setString(String name, String value) Adds the key/value pair to the buffer.
Parameters:
Returns: JSONBuffer Since: 04-29-2022 JSONBuffer setStrings(String[] items) Adds the item(s) to the array node in this buffer.
Parameters:
Returns: JSONBuffer Since: 11-15-2023 JSONBuffer startArray() Starts an array node. Returns: JSONBuffer Since: 04-29-2022 JSONBuffer startObject() Starts an object node. Returns: JSONBuffer Since: 04-29-2022 String toString() Returns the final JSON object as a string. Returns: String Since: 04-29-2022 JSONBuffer value(String json) Adds a JSON encoded string to this buffer.
Parameters:
Returns: JSONBuffer Since: 04-29-2022 |
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. | API Date: Dec 03, 2024 10:24 AM |