{"_id":"form2json","_rev":"18-7080cca5cd6c26879bf42ef661c4323e","name":"form2json","description":"Advanced decoder for form-urlencoded data","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"form2json","version":"0.0.1","description":"Alternative decoder for form-urlencoded data","homepage":"http://github.com/fgnass/form2json","author":{"name":"Felix Gnass","email":"felix.gnass@neteye.de","url":"http://fgnass.posterous.com"},"keywords":["form","urlencoded","bodyDecoder","querystring"],"main":"./index","repository":{"type":"git","url":"http://github.com/fgnass/form2json.git"},"_id":"form2json@0.0.1","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"tarball":"https://registry.npmjs.org/form2json/-/form2json-0.0.1.tgz","shasum":"70e1403d2e48d18b441f859a2886ab38ae98c209","integrity":"sha512-zwWchlQXlgEvxgCfzy6ZCD1Q3XkMKiVEqPinpvygRDzVDQDLUxGb+o67d4tXz2LB6Q2VyUZgRZkszIxScNNlpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCpWeKumJZ8wdfsYLtUgwGQ7qQOvIUykXDvemUnLilIwIhAMgauwXBJ1o3pXevwLrdN47v6xibJASRTidPUY8/TzNL"}]}},"0.0.2":{"name":"form2json","version":"0.0.2","description":"Alternative decoder for form-urlencoded data","homepage":"http://github.com/fgnass/form2json","author":{"name":"Felix Gnass","email":"felix.gnass@neteye.de","url":"http://fgnass.posterous.com"},"keywords":["form","urlencoded","bodyDecoder","querystring"],"main":"./index","repository":{"type":"git","url":"http://github.com/fgnass/form2json.git"},"_id":"form2json@0.0.2","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"tarball":"https://registry.npmjs.org/form2json/-/form2json-0.0.2.tgz","shasum":"9c92b28e16c66df9477331903dd45f6a9b1e9d77","integrity":"sha512-SsVyC2Ctscu96jq56XGBSmNiyu35T4/hQghSCtYm5hKqfGnyiG1YYQGrCxKKle4RYvXX3T1G43V1Kx5tXMe9yA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWAWK1O1Vx8EZAUQQ8FaLs2NvQxiqSJcdObvb6f3wGnQIhAJaClMMxLLPns82W0bjXH2YOL3D1KtRWU+fxNr8g7yQM"}]}},"0.0.3":{"name":"form2json","version":"0.0.3","description":"Advanced decoder for form-urlencoded data","homepage":"http://github.com/fgnass/form2json","author":{"name":"Felix Gnass","url":"http://fgnass.github.com"},"keywords":["form","urlencoded","bodyDecoder","querystring"],"main":"./index.js","repository":{"type":"git","url":"git://github.com/fgnass/form2json.git"},"scripts":{"test":"./node_modules/.bin/mocha"},"devDependencies":{"mocha":"0.x.x"},"_npmUser":{"name":"fgnass","email":"fgnass@gmail.com"},"_id":"form2json@0.0.3","dependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"99206bb99960da74bf1f8fda70bde10b1643a617","tarball":"https://registry.npmjs.org/form2json/-/form2json-0.0.3.tgz","integrity":"sha512-EjrlnMqV49AhbURVVB9vctGbHCrR78YX2+zlIfVVJBWoHYrc9wmTkXoe7ZEnJD/swrlnt56AaSU70itzp9VdCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA72jg67cg7XlGavU7kPgG2OprJAp7gPvUChEzqJTlEaAiBgEphs3g/IhhIHff2mA4qa4g5fq2xqxzlwC0hSJsH32w=="}]},"maintainers":[{"name":"fgnass","email":"fgnass@gmail.com"}]},"0.0.4":{"name":"form2json","version":"0.0.4","description":"Advanced decoder for form-urlencoded data","homepage":"http://github.com/fgnass/form2json","author":{"name":"Felix Gnass","url":"http://fgnass.github.com"},"keywords":["form","urlencoded","bodyDecoder","querystring"],"main":"./index.js","repository":{"type":"git","url":"git://github.com/fgnass/form2json.git"},"scripts":{"test":"./node_modules/.bin/mocha"},"devDependencies":{"mocha":"0.x.x"},"_npmUser":{"name":"fgnass","email":"fgnass@gmail.com"},"_id":"form2json@0.0.4","dependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"982b4227a13f9a98ece1eb1488fd63f70c704597","tarball":"https://registry.npmjs.org/form2json/-/form2json-0.0.4.tgz","integrity":"sha512-HI6faGMQSpVztt92DBmD/l85h0ZVhuohwK29uvZDk3b4G2gsBw94spqkqw1jUetLgmidJXO8ggwueawx/3nygg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIwQnL5ovu0SYngrbn0kohHcSVX8QqbX8qgPm2xdWopwIhANNhYJLyYQpCghBnVhPP7TM5d2jX5GlMlXdEIjTuX5CJ"}]},"maintainers":[{"name":"fgnass","email":"fgnass@gmail.com"}]},"0.1.0":{"name":"form2json","version":"0.1.0","description":"Advanced decoder for form-urlencoded data","homepage":"http://github.com/fgnass/form2json","author":{"name":"Felix Gnass","url":"http://fgnass.github.com"},"keywords":["form","urlencoded","bodyDecoder","querystring"],"main":"./index.js","repository":{"type":"git","url":"http://github.com/fgnass/form2json.git"},"scripts":{"test":"mocha --ui exports"},"devDependencies":{"mocha":"^1.18.2"},"bugs":{"url":"https://github.com/fgnass/form2json/issues"},"_id":"form2json@0.1.0","dist":{"shasum":"685bdb8d959a5ce992d6199a46098485a9a82d94","tarball":"https://registry.npmjs.org/form2json/-/form2json-0.1.0.tgz","integrity":"sha512-CNj51sQvwNOBc+bG2EjJNtEuCn37RvQuVBtbThzfRkryNBIBk/9nYC8wrF2tNMCl4Q+/P/0LJpHaQZf/KsOO5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICBlX6DXrEKpgIuF0acE25JIrjC72vGc59p+hQ1miU9/AiBDRF+LRVmdJsN352I+j3onbvd583IgiXMDw9x2IBTQyg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"fgnass","email":"fgnass@gmail.com"},"maintainers":[{"name":"fgnass","email":"fgnass@gmail.com"}]}},"maintainers":[{"name":"fgnass","email":"fgnass@gmail.com"}],"author":{"name":"Felix Gnass","url":"http://fgnass.github.com"},"repository":{"type":"git","url":"http://github.com/fgnass/form2json.git"},"time":{"0.0.3":"2012-05-31T13:37:13.063Z","modified":"2022-06-18T03:02:48.609Z","created":"2012-05-31T13:37:13.063Z","0.0.1":"2012-05-31T13:37:13.063Z","0.0.2":"2012-05-31T13:37:13.063Z","0.0.4":"2012-07-07T20:24:22.376Z","0.1.0":"2014-04-23T21:20:15.380Z"},"readme":"[![Build Status](https://secure.travis-ci.org/fgnass/form2json.png)](http://travis-ci.org/fgnass/form2json)\n\nForm2json is a decoder for [x-www-form-urlencoded](http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2.1) data\nthat supports complex structures. It uses simple dot-notation for nested properties and square brackets to denote arrays.\n\n# Syntax\n\nHere are some examples to illustrate the syntax.\n\n## Nested Objects\n\nThe following string represents a nested object:\n\n    planet.name=Mars&planet.diameter=0.532\n\nThe string will be decoded as:\n\n\t{\n\t\tplanet: {\n\t\t\tname: \"Mars\",\n\t\t\tdiameter: 0.532\n\t\t}\n\t}\n\nThere are no restrictions on the nesting-level:\n\n\tplanet.mars.diameter=0.532&planet.mars.mass=0.11\n\n\t{\n\t\tplanet: {\n\t\t\tmars: {\n\t\t\t\tdiameter: 0.532,\n\t\t\t\tmass: 0.11\n\t\t\t}\n\t\t}\n\t}\n\n## Arrays\n\nArrays can be encoded using square brackets:\n\n    planets[0]=Venus&planets[1]=Earth&planets[2]=Mars\n\n\t{\n\t\tplanets: [\"Venus\", \"Earth\", \"Mars\"]\n\t}\n\nIf the index is **omitted**, form2json will push the values to the array in **order of appearance**:\n\n\tplanets[]=Mars&planets[]=Venus&planets[]=Earth\n\n\t{\n\t\tplanets: [\"Mars\", \"Venus\", \"Earth\"]\n\t}\n\nThis feature is really useful, as it allows you to re-order the input fields on the client, without having to update the field names. In order to use this feature with arrays containing nested objects, we have to use a slightly different syntax:\n\n\tplanets[$2].name=Mars&planets[$2].mass=0.11&planets[$0].name=Venus&planets[$0].mass=0.82&planets[$1].name=Earth&planets[$1].mass=1\n\n\t{\n\t\tplanets: [\n\t\t\t{ name: \"Mars\", mass: 0.11 },\n\t\t\t{ name: \"Venus, mass: 0.82 },\n\t\t\t{ name: \"Earth\", mass: 1 }\n\t\t]\n\t}\n\nIn fact you may use *any non-numerical* value as index. All items having the *same* index will be grouped into one object.\n","readmeFilename":"README.md","homepage":"http://github.com/fgnass/form2json","keywords":["form","urlencoded","bodyDecoder","querystring"],"bugs":{"url":"https://github.com/fgnass/form2json/issues"}}