I have a problem to inserting new json into old json, have been tried to find it but I don't know the right keyword,
let say I have a json on foo1.js
:
function jsonapi(){
var ItemJSON = {
"salutation":"foo1"
,"location":"foo2"
,"reference_code":"foo3"
}
}
and on foo2.js
:
jsonapi();
var json = {
,"isCustomer":"foo4"
,"email_to":"foo5"
,"phone":"foo6"
}
Goal :
{
"salutation":"foo1"
,"location":"foo2"
,"reference_code":"foo3"
,"isCustomer":"foo4"
,"email_to":"foo5"
,"phone":"foo6"
}
there's a way to archieve my goal?