EVL – ETL Tool


Products, services and company names referenced in this document may be either trademarks or registered trademarks of their respective owners.

Copyright © 2017–2022 EVL Tool, s.r.o.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Table of Contents

json2evd

(since EVL 2.4)

Read <file.json> or standard input, guess data types, and write EVD to standard output or to <file.evd>.

Synopsis

json2evd
  [<file.json>] [-o|--output=<file.evd>]
  [-d|--date=<format>]
  [-l|--null=<string>]
  [-q|--quote=<char>]
  [-s|--separator=<char>]
  [-t|--datetime=<format>]
  [-v|--verbose]

json2evd
  ( --help | --usage | --version )

Options

-d, --date=<format>

by default it tries only ‘%Y-%m-%d’, then ‘%Y%m%d’, then ‘%d.%m.%Y

-l, --null=<string>

to specify what string is used for NULL values in JSON, empty string is allowed

-o, --output=<file.evd>

write output into file <file.evd> instead of standard output

-q, --quote=<char>

do not guess if fields are quoted, but suppose <char> as quotation character

-s, --separator=<char>

do not guess the separator, but use <char> instead

-t, --datetime=<format>

by default it tries only ‘%Y-%m-%d %H:%M:%S’, then ‘%Y%m%d%H%M%S

-v, --verbose

print to STDERR info/debug messages

--help

print this help and exit

--usage

print short usage information and exit

--version

print version and exit

Examples

  1. Having some.json:
    TBA
    

    This command:

    json2evd --null="" some.json
    

    will produce:

    id       int              null="" sep=";"
    started  date("%Y-%m-%d") null="" sep=";"
    value    string           null="" sep="\n"