0
Request to Remove Quotation Marks from Field Return Value
Hello everyone,
I would like to know if it’s possible to modify the return value of a program field so that the word name is returned without quotation marks.
I’d really appreciate any guidance or support. Thank you!
Before
[{"name":"Apple"},{"name":"Banana"},{"name":"Orange"},{"name":"Grape"},{"name":"Strawberry"},{"name":"Mango"},{"name":"Pineapple"},{"name":"Peach"},{"name":"Cherry"},{"name":"Blueberry"}]
after
[{name:"Apple"},{name:"Banana"},{name:"Orange"},{name:"Grape"},{name:"Strawberry"},{name:"Mango"},{name:"Pineapple"},{name:"Peach"},{name:"Cherry"},{name:"Blueberry"}]
9 replies
-
let src := before;
let res := replace(src, "{""", "{");
let after := replace(res, """:", ":");
after -
another possibility is the following. But why?
let salesData := (select tab1).("{name: " + """" + Te + """}"); join(salesData, ", ")
-
Question: Why are you using a JSON format in your code if you don't want quotes around the key?
Content aside
- Status Answered
- 20 hrs agoLast active
- 9Replies
- 49Views
-
4
Following