Skip to content

scientific notation in numbers are not consider while comparing json objects  #15

@kiran0991

Description

@kiran0991

input stings :
{"_id":{"p":47272221,"c":23},"f":[{"aa":"p.E250A","fsc":1e-05}
{"_id":{"p":47272221,"c":23},"f":[{"aa":"p.E250A","fsc":0.00005}

Error:
Traceback (most recent call last):
File "jsonCompare.py", line 16, in
b=json.loads(y)
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 1 column 241 (char 240)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions