All Projects → jehiah → Json2csv

jehiah / Json2csv

Licence: mit
command line tool to convert json to csv

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Json2csv

Pytablewriter
pytablewriter is a Python library to write a table in various formats: CSV / Elasticsearch / HTML / JavaScript / JSON / LaTeX / LDJSON / LTSV / Markdown / MediaWiki / NumPy / Excel / Pandas / Python / reStructuredText / SQLite / TOML / TSV.
Stars: ✭ 422 (-43.13%)
Mutual labels:  json, csv
Trdsql
CLI tool that can execute SQL queries on CSV, LTSV, JSON and TBLN. Can output to various formats.
Stars: ✭ 593 (-20.08%)
Mutual labels:  json, csv
Datasette
An open source multi-tool for exploring and publishing data
Stars: ✭ 5,640 (+660.11%)
Mutual labels:  json, csv
Structured Text Tools
A list of command line tools for manipulating structured text data
Stars: ✭ 6,180 (+732.88%)
Mutual labels:  json, csv
Sheetjs
📗 SheetJS Community Edition -- Spreadsheet Data Toolkit
Stars: ✭ 28,479 (+3738.14%)
Mutual labels:  json, csv
Specs
Technical specifications and guidelines for implementing Frictionless Data.
Stars: ✭ 403 (-45.69%)
Mutual labels:  json, csv
Api
Our Database
Stars: ✭ 568 (-23.45%)
Mutual labels:  json, csv
Choetl
ETL Framework for .NET / c# (Parser / Writer for CSV, Flat, Xml, JSON, Key-Value, Parquet, Yaml, Avro formatted files)
Stars: ✭ 372 (-49.87%)
Mutual labels:  json, csv
Sqlitebiter
A CLI tool to convert CSV / Excel / HTML / JSON / Jupyter Notebook / LDJSON / LTSV / Markdown / SQLite / SSV / TSV / Google-Sheets to a SQLite database file.
Stars: ✭ 601 (-19%)
Mutual labels:  json, csv
Countries
World countries in JSON, CSV, XML and Yaml. Any help is welcome!
Stars: ✭ 5,379 (+624.93%)
Mutual labels:  json, csv
Jsoncons
A C++, header-only library for constructing JSON and JSON-like data formats, with JSON Pointer, JSON Patch, JSON Schema, JSONPath, JMESPath, CSV, MessagePack, CBOR, BSON, UBJSON
Stars: ✭ 400 (-46.09%)
Mutual labels:  json, csv
Countries
Countries, Languages & Continents data (capital and currency, native name, calling codes).
Stars: ✭ 656 (-11.59%)
Mutual labels:  json, csv
Stream Parser
⚡ PHP7 / Laravel Multi-format Streaming Parser
Stars: ✭ 391 (-47.3%)
Mutual labels:  json, csv
Easy localization
Easy and Fast internationalizing your Flutter Apps
Stars: ✭ 407 (-45.15%)
Mutual labels:  json, csv
Visidata
A terminal spreadsheet multitool for discovering and arranging data
Stars: ✭ 4,606 (+520.75%)
Mutual labels:  json, csv
Servicestack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
Stars: ✭ 4,976 (+570.62%)
Mutual labels:  json, csv
Csv Parser
A modern C++ library for reading, writing, and analyzing CSV (and similar) files.
Stars: ✭ 359 (-51.62%)
Mutual labels:  json, csv
Leopotamgrouplibraryunity
Tools library for unity 3d game engine: animator graph helpers, serialization (json), localization, event routing (eventbus, ui actions), embedded scripting, uGui xml markup, threading, tweening, in-memory protection and other helpers (pure C#)
Stars: ✭ 373 (-49.73%)
Mutual labels:  json, csv
World countries
Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP and SQL formats, in multiple languages and with national flags included
Stars: ✭ 598 (-19.41%)
Mutual labels:  json, csv
Fsharp.data
F# Data: Library for Data Access
Stars: ✭ 631 (-14.96%)
Mutual labels:  json, csv

json2csv

Converts a stream of newline separated json data to csv format.

Build Status GitHub release

Installation

pre-built binaries are available under releases.

If you have a working golang install, you can use go get.

go get github.com/jehiah/json2csv

Usage

usage: json2csv
    -k fields,and,nested.fields,to,output
    -i /path/to/input.json (optional; default is stdin)
    -o /path/to/output.csv (optional; default is stdout)
    --version
    -p print csv header row
    -h This help

To convert:

{"user": {"name":"jehiah", "password": "root"}, "remote_ip": "127.0.0.1", "dt" : "[20/Aug/2010:01:12:44 -0400]"}
{"user": {"name":"jeroenjanssens", "password": "123"}, "remote_ip": "192.168.0.1", "dt" : "[20/Aug/2010:01:12:44 -0400]"}
{"user": {"name":"unknown", "password": ""}, "remote_ip": "76.216.210.0", "dt" : "[20/Aug/2010:01:12:45 -0400]"}

to:

"jehiah","127.0.0.1"
"jeroenjanssens","192.168.0.1"
"unknown","76.216.210.0"

you would either

json2csv -k user.name,remote_ip -i input.json -o output.csv

or

cat input.json | json2csv -k user.name,remote_ip > output.csv
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].