I have the JSON format in the following way,
{
"id":"343",
"css":{
"header":{
"background-color":"red",
"color":"#FFF",
"font-size":"12px"
},
"footer":{
"background-color":"blue",
"color":"#000",
"font-size":"11px"
}
}
}
I need to convert the JSON in the following way (i.e key and value pairs)
css : 'header{"background-color":"red"; "color":"#FFF"; "font-size":"12px";} footer{ "background-color":"blue"; "color":"#000";"font-size":"11px";'}
Using jQuery how to convert the JSON in the above format. Is is possible to send like this?