I am creating one json array using Json-glib using c++. Here is the data:
title="Daniweb" (string)
last= 1234 (long)
icon="icons" (string)
url = "[\"dani.com\"]" (json array)
After making one json array using exsiting APIs of json-glib library, I got this:
{"id":"Nitin1","clientName":"Gourav_first_task","tabs":"[{\"title\":\"Daniweb\",\"icon\":\"icons\",\"urlHistory\":\"[\\\"Dani.com\\\"]\",\"lastUsed\":1234}]"}
Is it the correct json string made? It has added those escape characters to it. I have declared those variables like that only which I have written above and got json as given. Please tell is it the correct json made out of it? Thanks.