Skip to content

code4fukui/HJSON

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HJSON

an HJSON compatible parser and encoder

TODO: needs testing, any contrinutions are more than welcome

Usage

import { HJSON } from "https://code4fukui.github.io/HJSON/HJSON.js";

const s = `{
  # comment
  a: "abc", // comment
  b: 123, /* comment */
}`;

const obj = HJSON.parse(s);
console.log(obj);
const s2 = HJSON.stringify(obj);
console.log(s2);

About

an HJSON (https://hjson.github.io/) compatible parser and encoder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%