Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm having a problem using twriteJsonField component as it does not allow to specify Multiple loop element
my input is as below :
-----------------------------------------------
|Line_year | action | group | comment |
-----------------------------------------------
| 2012 | Action1 | group1| comment1|
|2020 | Action2| group2| comment2|
------------------------------------------------
Now , i want to generate this json :
_____________________________________________________
{
"line_list":[
{
"line_year":"2012",
"comment_list":[
{
"action":"Action1",
"group":"group1",
"comment":"comment1"
}
]
},
{
"line_year":"2020",
"comment_list":[
{
"action":"Action2",
"group":"group2",
"comment":"comment2"
}
]
}
]
}
___________________________________________________________
How could i acheive this please ?
Hi Team,
tWriteJsonField does not support multiple loop elements.
That being said, One way to create complex json is using custom components like these here:
Best,
Yussef
could you help do that ?
There are a couple of ways you can approach this.
Could you give me an example on how to acheive that , i have datamapper .
Any solution would be appreciated .