Thanks to visit codestin.com
Credit goes to lib.haxe.org

json5mod

JSON5 (mod) parse/stringify.
https://github.com/Klug76/hxjson5

To install, run:

haxelib install json5mod 0.0.1 

See using Haxelib in Haxelib documentation for more information.

README.md

MIT License

json5mod

JSON5 parser and encoder for Haxe.

This library uses some ideas from https://github.com/nadako/hxjsonast/. It implements the JSON5 parser with some extensions from HJSON:

  • Identifiers not wrapped in quotes.
  • Single-quotes for strings.
  • HJSON style comments.
  • HJSON style multi-line strings.
  • Dangling commas (commas are even optional).
  • Numbers may be hexadecimal.
  • Numbers may have a leading or trailing decimal point.
  • The parser returns a typed object (which can be converted to Any)

Usage

import gs.json5mod.Json5;
var y = Json5.parse("{}");

The demo folder contains an example for openfl with simple live reload support.

Links:

https://json5.org/

https://github.com/json5/json5

http://hjson.org/

https://github.com/hjson/

https://github.com/nadako/hxjsonast

Contributors
Klug76
Version
0.0.1
Published
6 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub