How to check if a string like this {:[{},{}]}, without any literals, can be represented as a JSON object or not?
The input comes with the following constraints: 1. A JSON object should start with '{' and ends with a '}'. 2. The key and value should be separated by a ':'. 3. A ',' suggests an additional JSON property. 4. An array only consists of JSON objects. It cannot contain a "key":"value" pair by itself.
And it is to be intrepreted like this:
{
"Key": [{
"Key": "Value"
}, {
"Key": "Value"
}]
}
{}is probably a literal, too :-)'key','value,'abc','123'etc.