How to push an object into an object, as a variable
Options
Chetan -2435942
Member ✭
Hello,
I am trying to create a result JSON object array variable that has another object with a variable name "company_data".
How do i push into Result such that company_data shows as company data?
Result [
{
company_data:{
"name": "Apple",
"address": "520, San francisco"
}
"resultpath1": "xyz"
}
Currently when i push company data variable into Result [{item in a loop}] i get:
Result [
{
{
"name": "Apple"
"address": "520, San francisco"
}
"resultpath1": "xyz"
}
I am trying to create a result JSON object array variable that has another object with a variable name "company_data".
How do i push into Result such that company_data shows as company data?
Result [
{
company_data:{
"name": "Apple",
"address": "520, San francisco"
}
"resultpath1": "xyz"
}
Currently when i push company data variable into Result [{item in a loop}] i get:
Result [
{
{
"name": "Apple"
"address": "520, San francisco"
}
"resultpath1": "xyz"
}
Comments
-
- please help
-
This is resolved - we used push > set "company_data" > value = {}
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