hjson-js icon indicating copy to clipboard operation
hjson-js copied to clipboard

Hjson for JavaScript

Results 27 hjson-js issues
Sort by recently updated
recently updated
newest added

When using Hjson.rt.parse and stringify, blank lines in the source are not preserved. For instance, in the sample test.hjson file, if a blank line is added at line 15 (between...

IT would be nice if hjson honored `toJSON()` in a way consistent with the standard `JSON.stringify()`. From [Mozilla Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior) > If an object being stringified has a property named toJSON...

Hi, not sure if you saw it, but now Kibana (Elasticsearch UI) uses HJSON for the Vega visualizations! And almost immediately I have started receiving requests to add autocomplete support...

Should the library be separated from the command?

``` > parse('{a:1}') { a: 1 } > parse('{a:1,a:2}') { a: 2 } ``` I know that hjson-js is just following the spec, but it would be great to have...

Hi, once again, awesome project! This is a "nice to have", but it would optimize the output a lot. The condense mode fails for this case: ```yaml { transform: [...

I would like to be able to delete an object property via the `delete` keyword: ![image](https://user-images.githubusercontent.com/2950505/33218565-dbc5e256-d13d-11e7-9cca-6d416eb97288.png) When I do that with hjson, the property is set to `undefined`. See example...

Currently when minimal quoting is specified, keys containing @ sign are not quoted, but then should be.

Wonderful package ✨ I would like to use it as a dependency. My end users are sometimes targeting browser. Requiring [os](https://github.com/hjson/hjson-js/blob/5734a70a17b94f12b59081aa6fdf966aac066b23/lib/hjson-common.js#L102) prevents this. * Is there a way to hack...

```javascript import * as HJSON from 'hjson'; const text1 = "{test: 123}" // type taken from the config file console.log(text1); // "{test: 123}" // then sequential reading, modification and writing...