Skip to content
/ jdva Public

AWK library with functions to parse and create texts conform to the JSON grammar

License

Notifications You must be signed in to change notification settings

Qaracas/jdva

Repository files navigation

The Vargas' JSON library (jdva)

  • Read this in other languages: Español.

What is jdva?

jdva is an AWK library that offers functions to parse and create texts conform to the JSON grammar.

Software requirements

  • A recent version of AWK.

Note:

For jdva to work in Windows it is necessary to have AWK installed. Git provides AWK.

Installation

  1. Download the complete project writing:
$ git clone git://github.com/Qaracas/jdva.git
  1. Go to new created directory:
$ cd jdva
(jdva) $
  1. (Opcional) Set AWKPATH environment variable:
(jdva) $ export AWKPATH=${AWKPATH}:.:"$(pwd)""/src"
  1. (Optional) Run tests program:
(jdva) $ cd pruebas
(jdva/pruebas) $
(jdva/pruebas) $ ./haz_pruebas
  1. Copy src/bbl_jdva.awk and src/funcs_priv.awk files into the /usr/local/share/awk directory, or into any other directory listed in AWKPATH environment variable.

Start using

To access jdva library functions from your AWK program, include the bbl_jdva.awk file at the beginning.

#!/usr/bin/gawk -E

@include "bbl_jdva.awk"

BEGIN {
    #...
}

Or pass it through the include source file command line option.

gawk -i bbl_jdva.awk '{#...}'

Documentation

See README.tutorial.md for examples and README.functions.md for a complete list of library functions.

Take a look the ejemplos (examples) folder as well.

References

This library aims to conform with the JSON (JavaScript Object Notation) data exchange format defined in:

Authors

License

This project is distributed under the terms of the GNU General Public License (GNU GPL v3.0). Look at the file LICENSE for more details.

About

AWK library with functions to parse and create texts conform to the JSON grammar

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages