Skip to content

kemitchell/lispy-json.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

At the command line:

$ npm install --global lispy-json
$ lispy-json < example.json
{ "glossary": {
    "title": "example glossary",
    "GlossDiv": {
      "title": "S",
      "GlossList": {
        "GlossEntry": {
          "ID": "SGML",
          "SortAs": "SGML",
          "GlossTerm": "Standard Generalized Markup Language",
          "Acronym": "SGML",
          "Abbrev": "ISO 8879:1986",
          "GlossDef": {
            "para": "A meta-markup language, used to ...",
            "GlossSeeAlso": [ "GML", "XML" ] },
          "GlossSee": "markup" } } } } }

In JavaScript, via npm:

var stringify = require('lispy-json')

console.log(stringify({an: 'object'}))