Rechercher

ディスカッション (2)3
続けるにはログインするか新規登録を行ってください
質問
· 2024年9月18日

Changing JSON component

Hi Guys,

I'm using the following to display JSON content in an areatextbox, but I would like to change a value in my JSON before displaying it in my areabox?

set txtId.value= jobj.SampleJsonData.Read(jobj.SampleJsonData.Size)

say for example my JSON string as below and would like to change Type value, I thought of converting the JSON to object
(
d ##class(%ZEN.Auxiliary.jsonProvider).%ConvertJSONToObject(jobj.SampleJsonData.Read(jobj.SampleJsonData.Size),,.list)  )    

Set the value of Type : list.Type

then convert the Object back to JSON but I couldn't find a function or method that convert Object back to JSON?

{
"Number":"091820246OB",
"id":42961251,
"SensorId":"001D091N",
"Type":"CTR"

}

 

Thanks       

3 Comments
ディスカッション (3)3
続けるにはログインするか新規登録を行ってください
記事
· 2024年9月18日 4m read

Créer un frontend uniquement à l'aide de Python

Pour les développeurs axés sur le backend, le développement du frontend peut être une tâche intimidante, voire cauchemardesque. Au début de ma carrière, les frontières entre frontend et backend étaient brouillées et tout le monde était censé s'occuper des deux. Le CSS, en particulier, a été une lutte constante ; il a été ressenti comme une mission impossible.

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
記事
· 2024年9月17日 2m read

第二十七章 添加数字签名 - 变体:使用签名的 SAML 断言

第二十七章 添加数字签名 - 变体:使用签名的 SAML 断言

要添加在签名的 SAML 断言中使用证书的数字签名,请执行以下操作:

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください