{"_id":"@autotrof/json-to-url","_rev":"1-09e72f1774afcc764fa29f30b0c99705","name":"@autotrof/json-to-url","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@autotrof/json-to-url","version":"1.0.0","type":"module","description":"this is package to translate complex json object into url query params","main":"index.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["json","query","params","url","complex"],"author":{"name":"ChatGPT"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/autotrof/json-to-url.git"},"gitHead":"afcb435413b0f2c00ab102807362df84308fe574","bugs":{"url":"https://github.com/autotrof/json-to-url/issues"},"homepage":"https://github.com/autotrof/json-to-url#readme","_id":"@autotrof/json-to-url@1.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-Ley1rWMeCD2aMSaf8+sHr2Y5V+fYjF/ZRGcHErN51Ov2znM+DutrNEHAbhzFX+0grp4TpXIhRvfWGu3ZpZ/MLw==","shasum":"7aaaa00baee6ddc09e65605421a61def0e2dda74","tarball":"https://registry.npmjs.org/@autotrof/json-to-url/-/json-to-url-1.0.0.tgz","fileCount":3,"unpackedSize":1538,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZj+Lvqsa9TbW6vy/XC2FOEw3MOuCQ1lb2wa7m4KUwFAiB2RUh7fb3KWlAhfi9jPMxF1w5fqmH53e8Qru3UnGEDpA=="}]},"_npmUser":{"name":"autotrof","email":"upload.kurniawan@gmail.com"},"directories":{},"maintainers":[{"name":"autotrof","email":"upload.kurniawan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-to-url_1.0.0_1683454501857_0.012023991800168332"},"_hasShrinkwrap":false},"1.1.0":{"name":"@autotrof/json-to-url","version":"1.1.0","type":"module","description":"this is package to translate complex json object into url query params","main":"index.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["json","query","params","url","complex"],"author":{"name":"ChatGPT"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/autotrof/json-to-url.git"},"gitHead":"b4a7024551d6de9e51fdc38d7fbeab3a9a764c32","bugs":{"url":"https://github.com/autotrof/json-to-url/issues"},"homepage":"https://github.com/autotrof/json-to-url#readme","_id":"@autotrof/json-to-url@1.1.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-gY0HcwJUOiVR1iIK/fWMs58sMgedK69e5rugz86bmDEKqSfF9VCUHbkD3yN2RQg5S4i8srJp74JLhdGTkeKYqg==","shasum":"f3a95dabe3859944a198c7946dd9c5a86dad1424","tarball":"https://registry.npmjs.org/@autotrof/json-to-url/-/json-to-url-1.1.0.tgz","fileCount":5,"unpackedSize":2869,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIANGaEcHVAYP464VtC4G0kzncwHF9r6NpZOMiPT7l7tiAiBuQ79Pzr2n3Gk3jlRmyGjA6RIqL8FgaadyZMiBv+xK6w=="}]},"_npmUser":{"name":"autotrof","email":"upload.kurniawan@gmail.com"},"directories":{},"maintainers":[{"name":"autotrof","email":"upload.kurniawan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-to-url_1.1.0_1683457936981_0.9254560547071307"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-07T10:15:01.674Z","1.0.0":"2023-05-07T10:15:02.019Z","modified":"2023-05-07T11:12:17.365Z","1.1.0":"2023-05-07T11:12:17.189Z"},"maintainers":[{"name":"autotrof","email":"upload.kurniawan@gmail.com"}],"description":"this is package to translate complex json object into url query params","homepage":"https://github.com/autotrof/json-to-url#readme","keywords":["json","query","params","url","complex"],"repository":{"type":"git","url":"git+https://github.com/autotrof/json-to-url.git"},"author":{"name":"ChatGPT"},"bugs":{"url":"https://github.com/autotrof/json-to-url/issues"},"license":"MIT","readme":"## About\n\nThis package will convert your complex json object into url query string\n\n### Usage\n\n```\nimport jsonToUrl from '@autotrof/json-to-url'\n\nconst obj = {\n  name: \"Agung\",\n  gender: \"Male\",\n  role: [\n    {\n      id: 1,\n      name: \"Admin\",\n      permissions: [\n        \"C\", \"R\", \"U\", \"D\"\n      ]\n    },\n    {\n      id: 2,\n      name: \"Root\"\n    }\n  ]\n}\n\nconst reulst = jsonToUrl(obj)\n// will generate string => name=Agung&gender=Male&role%5B0%5D%5Bid%5D=1&role%5B0%5D%5Bname%5D=Admin&role%5B0%5D%5Bpermissions%5D%5B0%5D=C&role%5B0%5D%5Bpermissions%5D%5B1%5D=R&role%5B0%5D%5Bpermissions%5D%5B2%5D=U&role%5B0%5D%5Bpermissions%5D%5B3%5D=D&role%5B1%5D%5Bid%5D=2&role%5B1%5D%5Bname%5D=Root\n\n// if you decode that. will return name=Agung&gender=Male&role[0][id]=1&role[0][name]=Admin&role[0][permissions][0]=C&role[0][permissions][1]=R&role[0][permissions][2]=U&role[0][permissions][3]=D&role[1][id]=2&role[1][name]=Root\n```","readmeFilename":"README.md"}