Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

rcrowley/json.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json.sh

Pure-shell JSON parser.

json.sh requires GNU sed(1).

Installation

make && sudo make install

Usage

From the command-line:

json.sh <"tests/object-complex.json"

As a library:

. "lib/json.sh"
json <"tests/object-complex.json"

Overriding the default use of / as the key separator:

JSON_SEPARATOR="^" json.sh <"tests/object-complex.json"

TODO

  • Whole-ass the half-assed escape sequence and Unicode support.

TODONE

  • Arrays.
  • Booleans.
  • Objects.
  • null.
  • Numbers.
    • Floating-point.
    • Negative.
    • Scientific notation.
  • Strings.
    • Backspace, form feed, newline, and carriage return escapes.
    • Unicode characters specified by their codepoints: \uXXXX.

License

json.sh is BSD-licensed.

About

Pure-shell JSON parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages