I receive in my system from a textbox the following JSON String format and I like to know if there is a way of validate with a regexp that is a valid JSON string:
{
"settings":{
"user":"...",
"pass":"..."
},
"data":[
{
"id":1,
"field1":"...",
"field2":"..."
},
{
"id":2,
"field1":"...",
"field2":"..."
}
]
}
Thanks for any suggestion.