Hope this could help:
w ##class(%ZEN.Auxiliary.jsonProvider).%WriteJSONStreamFromObject(.stream,j)
1
SAMPLES>w stream.Read()
{
"_class":"Jiri.RegisteredObject",
"p1":"test",
"p2":"json"
}Stolen from @Kyle Baxter answer here.
- Log in to post comments

