×

Please give details of the problem

Skip to content

How to concatenate 2 JSONObjects

Code

<#assign b = {"2":"bananas"}>
<#assign c = {"3":"carrots"}>
<#assign d = (b + c)?eval>  

Result

d = { "2": "bananas", "3": "carrots" }