Skip to content

Values from json array to seperate csv fields #17

@RoelandSteur

Description

@RoelandSteur

I love this tool! I'm using it to convert json files from Twitter's streaming API to csv. I have very little programming skills, so this tool is really good for me.

However I'm stuck at this point where I would like to extract values from the coordinate pairs within tweets. I think the coordinates are stored as an array:

"coordinates": {"coordinates": [3.82955502, 51.48484907], "type": "Point"}

Would it be possible to store the X and Y-coordinate in a separate csv field?

I tried: "json2csv -k coordinates.coordinates[0],coordinates.coordinates[1] -i ...etc" but this doesn't work.

Thanks in advance!
Roeland

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions