09-12-2023, 07:37 AM
Hi,
is there really no way to get a Json string into javascript?
This is in V0 inputTag:
this javascript does't work:
Need something like "Virtuino.readJson"
Best regards, Joe
is there really no way to get a Json string into javascript?
This is in V0 inputTag:
Code:
{"Time":"2023-09-09T19:05:35"}
this javascript does't work:
Code:
//var inputValue='{"Time":"2023-09-09T19:05:35";' // this is working
var inputValue = Virtuino.readValue("inputTag"); // does't work
if (inputValue!=null) {
const obj=JSON.parse(inputValue);
result = '{"tag":"outputTag", "value":"'+ obj.Time+ '"}';
}
else {
result = null;
}
Need something like "Virtuino.readJson"
Best regards, Joe