Hi,
Is there a function in Xano that does what this webpage does with text that contains normal strings + raw json:
https://www.freeformatter.com/json-escape.html
Example:
This was the input:
THIS IS JUST TEXT.
THIS IS JSON:
{
"person": {
"name": "John Doe",
"age": 30,
"gender": "male",
"address": {
"city": "New York",
"state": "NY",
"country": "USA"
},
"email": "[email protected]",
"phone": "+1234567890",
"interests": ["hiking", "reading", "cooking"]
},
"products": [
{
"id": "1234",
"name": "Smartphone",
"price": 599.99,
"brand": "Samsung",
"category": "Electronics"
},
{
"id": "5678",
"name": "Running Shoes",
"price": 79.99,
"brand": "Nike",
"category": "Sports"
}
]
}
JSON decode/encode only works if the input is solely text or solely JSON so it won't work for this.