how to compare below 2 json structure in python
MRAB
python at mrabarnett.plus.com
Thu Jun 21 15:20:01 EDT 2012
On 21/06/2012 19:16, hisan wrote:
> sample_json1={{
> "globalControlId": 72,
> "value": 0,
> "controlId": 2
> },
> {
> "globalControlId": 77,
> "value": 3,
> "controlId": 7
> }
> }
>
> sample_json2={
> {
> "globalControlId": 77,
> "value": 3,
> "controlId": 7
> },
> {
> "globalControlId": 72,
> "value": 0,
> "controlId": 2
> }
> }
>
That doesn't look like valid JSON.
The only container types in JSON are list (delimited by "[" and "]")
and dict (delimited by "{" and "}").
More information about the Python-list
mailing list