Rechercher

Discussão (2)3
Entre ou crie uma conta para continuar
Pergunta
· Set. 18, 2024

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
Discussão (3)3
Entre ou crie uma conta para continuar
Artigo
· Set. 18, 2024 4min de leitura

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.

Discussão (0)1
Entre ou crie uma conta para continuar
Discussão (0)1
Entre ou crie uma conta para continuar
Artigo
· Set. 17, 2024 2min de leitura

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

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

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

Discussão (0)1
Entre ou crie uma conta para continuar