backbone-query-parameters icon indicating copy to clipboard operation
backbone-query-parameters copied to clipboard

Objects nested in arrays

Open eschwartz opened this issue 11 years ago • 0 comments

Any thoughts on objects nested within arrays?

router.toFragment('somePath', { anArray: [ { a: 'b', c: 'd' } ] } 

I started to write a test for this, but realized I had no idea how it should be parsed. You could do

`somePath/anArray=|a=b&c=d'

but that would be the same as

route.toFragment('somePath', { anArray: [{ a: 'b' }], c: 'd' });

I'm not should where else to go from there. Any thoughts?

eschwartz avatar Oct 28 '13 21:10 eschwartz