|
ColdBox Platform - LogBox Version 1.6.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
logbox.system.core.conversion.JSON
public class JSON
JSON Object used to serialize and deserialize JSON data to/from native ColdFusion objects.
| Constructor Summary | |
|---|---|
init()
|
|
| Method Summary | |
|---|---|
any |
decode(string data)
Converts data from JSON to CF format |
string |
encode(any data, [string queryFormat='query'], [string queryKeyCase='lower'], [boolean stringNumbers='false'], [boolean formatDates='false'], [string columnListFormat='string'], [string keyCase='lower'])
Converts data from CF to JSON format |
remote boolean |
validate([string doc], [string schema], [string errorVar='JSONSchemaErrors'], [boolean stopOnError='true'], [any _doc], [any _schema], [string _item='root'])
I validate a JSON document against a JSON schema |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init()
| Method Detail |
|---|
public any decode(string data)
data - JSON Packetpublic string encode(any data, [string queryFormat='query'], [string queryKeyCase='lower'], [boolean stringNumbers='false'], [boolean formatDates='false'], [string columnListFormat='string'], [string keyCase='lower'])
data - The CF structurequeryFormat - query or arrayqueryKeyCase - lower or upperstringNumbersformatDatescolumnListFormat - string or arraykeyCase - lower, none or upperremote boolean validate([string doc], [string schema], [string errorVar='JSONSchemaErrors'], [boolean stopOnError='true'], [any _doc], [any _schema], [string _item='root'])
docschemaerrorVarstopOnError_doc_schema_item
|
ColdBox Platform - LogBox Version 1.6.1 | ||||
| FRAMES | |||||