InterSystems Programming Tools Index
JSON
[Back] [Next]
   
Server:docs1
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

Create, use, and modify JSON-format objects and arrays; serialize objects as JSON; create objects from JSON.
Background Information
JSON (JavaScript Object Notation) is a lightweight, human-readable data interchange format, described by RFC 7159 and ECMA-404. It is commonly used in client/server communications.
Available Tools
dynamic object and dynamic array classes
A dynamic object is a special kind of Caché object that has no schema. Instead, such an object is empty, and you can create properties simply by using assignment statements. A dynamic array is similar.
Dynamic objects and arrays are defined by three classes: %DynamicObject, %DynamicArray, and %DynamicAbstractObject (the common superclass).
These classes provide methods to serialize themselves to and from JSON. For details, see Using JSON in Caché.
Availability: All namespaces.
dynamic object and dynamic array expressions
Caché ObjectScript provides support for JSON-format object and array expressions, which return instances of %DynamicObject and %DynamicArray, respectively. For details, see Using JSON in Caché.
Availability: All namespaces.