Saturday, 24 August 2013

json inside a json object not handling properly

json inside a json object not handling properly

i'm putting a JSON object withing a JSon object with adding another value
but when i print it it gives [Object Object]. not giving the values in
json format. code is following.
var Json1 = {"name":"OMAR"};
var data=null;
var json2 = {"ID":12345 ,data=json1 };
I'm confused where i'm doing wrong. any help will be appreciated.

No comments:

Post a Comment