arson icon indicating copy to clipboard operation
arson copied to clipboard

Efficient encoder and decoder for arbitrary objects

Results 4 arson issues
Sort by recently updated
recently updated
newest added

```ts declare module 'arson' { export type ARSONValue = | string | number | boolean | null | RegExp | Date | Buffer | Map | Set | ARSONValue[] |...

I had to comment out `custom.js` in order to package this up with rollup, as it seems like this circular dependency is not getting resolved correctly: https://github.com/benjamn/arson/blob/master/custom.js#L11 Is there a...

Instead of encoding objects as object literals with (possibly repeated) string keys, this commit encodes them as an array of (interned) keys and values: ```js > ARSON.encode([{lonnngKeyName:"a",a:true},{b:false,lonnngKeyName:"b"}]) '[[1,2],["o",3,4,4,5],["o",6,7,3,6],"lonnngKeyName","a",true,"b",false]' > ARSON.decode(_)...

This looks like an awesome lib that I'd love to use in one of my projects. However, there are a few things I'd like to see changed: - Port to...