User bio
404 bio not found
Member since Jan 27, 2023
Posts:
Replies:
I have below issue -
I have an ID with 123456.(ID as a dynamic value coming from request message)
I wanted it to be displayed as "123456" in Json Stream.
Code Example:
set object = ##class(%ZEN.proxyObject).%New()
set object.ID = ID
set x = ##class(%ZEN.Auxiliary.jsonArrayProvider).%WriteJSONStreamFromObject(.json,object)
Case:1
ID : 123456
Will output:
{
"ID": 123456
}
but I need :
{
"ID": "123456"
}
Case:2
ID : "123456" (adding double quotes)
Will output:
{
"ID": "\"123456\""
}
but I need :
{
"ID": "123456"
}
Thanks in advance.
It is working now
my XML :
<Input>
<data>
<Id>
<Type>A</Type>
<Value>123</Value>
</Id>
</data>
</Input>
need to use --> Document.data.Id
Certifications & Credly badges:
Krishnaveni has no Certifications & Credly badges yet.
Global Masters badges:
Krishnaveni has no Global Masters badges yet.
Followers:
Krishnaveni has no followers yet.
Following:
Krishnaveni has not followed anybody yet.
Hi All ,
It is solved :
Using this earlier :
d ##class(%ZEN.Auxiliary.jsonProvider).%WriteJSONStreamFromObject(pTarget.EntityBody,pRequest,,,1,"aelqtw")
using the below solved the issue :
d ##class(%ZEN.Auxiliary.jsonProvider).%WriteJSONStreamFromObject(pTarget.EntityBody,pRequest,,,1,"aeltw")