43081j / picoquery

A small library for parsing and serializing query strings
MIT License
69 stars 2 forks source link

feat: add new js nesting syntax #40

Closed 43081j closed 2 months ago

43081j commented 2 months ago

Adds a new syntax type, js. With this syntax, arrays use indices and properties use dot-notation.

For example:

// foo.bar[0]=baz

({
  foo: {
    bar: [
      'baz'
    ]
  }
})

Closes #39

doesn't seem to affect benchmarks much, fortunately