User bio
404 bio not found
Member since Jan 27, 2023
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.

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.