Home > Class Reference > ENSLIB namespace > Ens.Util.JSON

Ens.Util.JSON

abstract class Ens.Util.JSON

Method Inventory

Methods

classmethod GetXDataAsJSONClose(ByRef qHandle As %Binary) as %Status [ Language = objectscript ]
classmethod GetXDataAsJSONExecute(ByRef qHandle As %Binary, pClassname As %String = "", pXDataName As %String = "") as %Status [ Language = objectscript ]
classmethod GetXDataAsJSONFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status [ Language = objectscript ]
classmethod JSONStreamToObject(pStream, Output pObject As %RegisteredObject, pClass As %String, pIgnoreUnknownProps As %Boolean) as %Status [ Language = objectscript ]
classmethod JSONStreamToObjectArray(pStream, Output pArray, pClass As %String, pIgnoreUnknownProps As %Boolean) as %Status [ Language = objectscript ]
classmethod ObjectToJSONStream(pObject As %RegisteredObject, ByRef pStream, pFormat As %String = "iw") as %Status [ Language = objectscript ]

Queries

query GetXDataAsJSON(pClassname As %String = "", pXDataName As %String = "")
Selects XDataAsJSON
Returns XData model as JSON
Requires XData Object to extend %JSON.Adaptor Protected by resource determined by XDataName
RuleDefinition : To read: one of "%Ens_Rules:READ,%Ens_RoutingRules:READ,%Ens_BusinessRules:READ,%Ens_Code:READ"

Subclasses

FeedbackOpens in a new window