Question Akshat Vora · Feb 22, 2020 Convert an array to a JSON string I need to convert an array with an unknown number of indices to a JSON string for transmission (which is why it isn't possible to iterate through it using $ORDER). Does ObjectScript provide functionality to convert an array to a JSON string? Edit 1: As Joel mentioned, the array is subscripted and has an arbitrary structure like: a(1)="a" a(3,4)="b" a(3,6)="c" a(5,6,7)="d" which needs to be converted to #JSON #ObjectScript #InterSystems IRIS 0 6 0 1.7K
Question Akshat Vora · Jan 23, 2020 QUIT argument not allowed try{ .... .... .... Set tSC = method_invocation() If $$$ISERR(tSC) { Quit tSC } .... .... .... } On compiling the above, I get an error saying "QUIT argument not allowed : 'tSC' ". #Debugging #ObjectScript #Caché #InterSystems IRIS 1 9 0 990
Question Akshat Vora · Jan 21, 2020 Converting an object from type %Library.DynamicObject to another type I need to convert a JSON payload to a custom object type. Currently, I'm converting the JSON object to a %Library.DynamicObject object and need to proceed from here. As of now, these are my options 1. Using an external library talked about in this link: #JSON #InterSystems IRIS #InterSystems IRIS BI (DeepSee) 1 4 1 943