Skip to content

WARNING:root:malformed node or string for json's file elements that take lists as values #31

@kf89

Description

@kf89

Hello!I have a json file and each line of it seems like the folowing line

{"ip":"74.63.161.124","timestamp":"2015-10-16T14:00:13-04:00","data":{},"error":"EOF","error_component":"banner","location":[17.3753, 78.4744]}

The program exports that is an invalid file and the reason of that is that it does not accept
the feature "location":[17.3753, 78.4744] which contains a list.
Particularly, it exports:

WARNING:root:malformed node or string: <_ast.BinOp object at 0x0000029A2FFF7E80>

Moreover, when I do not validate the file, I cannot tranfer to ES the lines that "correspond" to these warnings.

It would be a good idea to be fixed as it's a valid json file.The error is because of json.loads command but I couldn't fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions