Code generation from string disallowed in this context
Options
wesleywas
Member ✭
Hey guys,
I'm trying to dynamically build a JSON object from a Javascript-end definition.
My input is plain-text, like:
"obj[people][name] = 'Anthony'; obj[people][age] = 19;"
And I want to build a JSON object that I can work with in Xano.
I am able to do it in Node.js locally, so I tried to use Lambdas and run that plain-text inside the built-in Javascript eval() function.
But the thing is that it is apparently forbidden by Xano, as I'm getting this error code :
"Code generation from strings disallowed for this context".
Do you have an idea guys on how I could bypass this?
Thanks!
Tagged:
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback