{"_id":"json-web3","_rev":"1539213","name":"json-web3","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","dist-tags":{"latest":"1.3.5"},"maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"time":{"modified":"2026-10-15T05:35:57.000Z","created":"2026-01-19T16:08:44.705Z","1.3.5":"2026-02-01T09:02:27.026Z","1.3.4":"2026-01-22T02:24:47.617Z","1.3.3":"2026-01-22T02:06:33.706Z","1.3.2":"2026-01-22T01:58:07.641Z","1.3.1":"2026-01-20T15:53:49.542Z","1.3.0":"2026-01-20T15:49:28.115Z","1.2.2":"2026-01-20T15:02:04.278Z","1.2.1":"2026-01-20T14:47:51.057Z","1.2.0":"2026-01-20T05:59:47.485Z","1.1.0":"2026-01-20T04:55:50.930Z","1.0.2":"2026-01-20T03:54:54.802Z","1.0.1":"2026-01-20T03:45:42.306Z","1.0.0":"2026-01-20T02:30:17.260Z","0.1.1":"2026-01-19T16:21:36.099Z","0.1.0":"2026-01-19T16:08:44.705Z"},"users":{},"author":{"name":"haozi"},"repository":{"url":"git+https://github.com/JSON-Web3/json-web3.git","type":"git"},"versions":{"1.3.5":{"name":"json-web3","version":"1.3.5","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.3.5","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/JSON-Web3/json-web3#readme","bugs":{"url":"https://github.com/JSON-Web3/json-web3/issues"},"dist":{"shasum":"af2c6c56b9de176922f340df5cab236104e66c64","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.3.5.tgz","fileCount":9,"integrity":"sha512-C8zOt9g7Wt1MPKECStKk5vqByZNqdpqHdSUb36sU7WVrMNfHr88bwLogp51umlM5Tm14z05nht29SDWQilsuCA==","signatures":[{"sig":"MEUCIBR7dDg51/1ggs+wixJkvzNqn5Fwlt/gMujrfciYsbYCAiEAloJUCxu03W2jud9AngZ1QhJ3hh2U4aU36KdZY04yKZQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/json-web3@1.3.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":75082,"size":10294,"noattachment":false,"key":"/json-web3/-/json-web3-1.3.5.tgz"},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"b9ec1300b4e880c8388aca91ea01ebc98b89271e","_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"repository":{"url":"git+https://github.com/JSON-Web3/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.3.5_1769936546861_0.5948458480739021","host":"s3://npm-registry-packages-npm-production"},"publish_time":1769936547026,"_cnpm_publish_time":1769936547026},"1.3.4":{"name":"json-web3","version":"1.3.4","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.3.4","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"c2df1647b027702de55ef057d9ea9fb656952241","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.3.4.tgz","fileCount":9,"integrity":"sha512-epJRIeTnp4Ao/IGb8TFl9IfM+LaMBPEwlPmKqMsASVrOairnoYwsn+EeuvqQV2EVFg+QVhIFg1L85GnR51lrxw==","signatures":[{"sig":"MEYCIQCgAxTr0uxQ3jkvLU1HctWz/rbG7L129BbenEuwN6uOpAIhAKJMk2GE9C+EcW9I0jrhaLd8DkYmbwN93dbb0t9oFwIf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/json-web3@1.3.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":74838,"size":10167,"noattachment":false,"key":"/json-web3/-/json-web3-1.3.4.tgz"},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"ba704e4abf30c5079a3f68330000a4090e4505f1","_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.3.4_1769048687474_0.3673244113259888","host":"s3://npm-registry-packages-npm-production"},"publish_time":1769048687617,"_cnpm_publish_time":1769048687617},"1.3.3":{"name":"json-web3","version":"1.3.3","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.3.3","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"f2db6553fb44fd7ba83fe9b5bc4d15a4722c80f8","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.3.3.tgz","fileCount":9,"integrity":"sha512-zT+gLdfsjRUg2ALVQ5NdaN/NcbSs7NalqB7FFzPnRPzR5vpoZQICkKmzJLTjyxIaLmpSVLUP1tTPkgqkhbCb4Q==","signatures":[{"sig":"MEQCIGWZlDB2VqQVjgTpPxAwxAAXcohP2SIGP5akJGTMKNudAiBVVLMgIEGdQQEadFkSNzZ6m8NjvmUXnRM7WSFHUwx1tQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/json-web3@1.3.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":74978,"size":10224,"noattachment":false,"key":"/json-web3/-/json-web3-1.3.3.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e718947498c7dc68d18fae0b48e4a12cf9df4933","_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.3.3_1769047593533_0.009540487357403205","host":"s3://npm-registry-packages-npm-production"},"publish_time":1769047593706,"_cnpm_publish_time":1769047593706},"1.3.2":{"name":"json-web3","version":"1.3.2","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.3.2","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"a5189fe0a6d1aafe22f01c23c910126f9cb89d48","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.3.2.tgz","fileCount":9,"integrity":"sha512-QmdI2aK4I+EOF5WcVxZEzT55yhxdjJjvwzHKg6qEyFQ2jzp+/nr+vRWUN4s75fvo4OwuQCjHMzEDTUQDnZiIQw==","signatures":[{"sig":"MEUCIQDoJ1e/VPHcWUgzQt1tDOclWj+/PJagovlgUxBc+zLOAQIgVSpb2QsviWRqq4lURm7Clj0rnOErGjVhbjN07wzPBoI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/json-web3@1.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":74245,"size":9970,"noattachment":false,"key":"/json-web3/-/json-web3-1.3.2.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"6dd7e656f7ae23e71851453fe855eb480a1d2145","_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.3.2_1769047087487_0.011077742471728769","host":"s3://npm-registry-packages-npm-production"},"publish_time":1769047087641,"_cnpm_publish_time":1769047087641},"1.3.1":{"name":"json-web3","version":"1.3.1","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.3.1","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"bc23ad79351e5350fb09a4d9407a86213036b50c","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.3.1.tgz","fileCount":9,"integrity":"sha512-qxgLmZIFGAjLvuYWwzemFUBpMip5Cw8jgAbcADzhwRgf2HCheahnJMUz9c/ZbVBd7ZC/ETXHHslu1bHJ7y1mPg==","signatures":[{"sig":"MEUCIDCbRNuvGMeVrnoAsFR5kSMT8wQm89Hx10FWKe8vGcaFAiEAzN3eFcHAB+uW7GKKFeIV5iDMSvACw0CBBdk+sn5TbWg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":73954,"size":10074,"noattachment":false,"key":"/json-web3/-/json-web3-1.3.1.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-1.3.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run --coverage","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/903966081b82cb43960f1a47cc770c2d/json-web3-1.3.1.tgz","_integrity":"sha512-qxgLmZIFGAjLvuYWwzemFUBpMip5Cw8jgAbcADzhwRgf2HCheahnJMUz9c/ZbVBd7ZC/ETXHHslu1bHJ7y1mPg==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","vite-node":"^5.3.0","typescript":"^5.9.3","@types/node":"^25.0.9","@vitest/coverage-v8":"^4.0.17","prettier-plugin-lint-md":"^1.0.1","prettier-plugin-sort-json":"^4.2.0","prettier-plugin-tailwindcss":"^0.7.2","prettier-plugin-organize-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.3.1_1768924429363_0.7353684593194996","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768924429542,"_cnpm_publish_time":1768924429542},"1.3.0":{"name":"json-web3","version":"1.3.0","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.3.0","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"b413bec1a09737570a4c590e8e379e4950f48f26","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.3.0.tgz","fileCount":9,"integrity":"sha512-OmAFoImkIJ5ffvbOjCc6tandLJ3s2kcA4Oab+oeD+ik6peHD4l+iCjyvmyqWRj8A6Nmb2vbqy3U3LV9/uVowJw==","signatures":[{"sig":"MEYCIQDuFf4ikPbYy+vGA9/qcVbHkIRkY9DaB/CAKQL56BuTMAIhAK3ahXQj2jriznQCL2YMe0KWWb4lI0ay23Ox8oL92v64","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":74460,"size":10119,"noattachment":false,"key":"/json-web3/-/json-web3-1.3.0.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-1.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run --coverage","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/6a30c28737a5b453bf32fedfc41af1a4/json-web3-1.3.0.tgz","_integrity":"sha512-OmAFoImkIJ5ffvbOjCc6tandLJ3s2kcA4Oab+oeD+ik6peHD4l+iCjyvmyqWRj8A6Nmb2vbqy3U3LV9/uVowJw==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","vite-node":"^5.3.0","typescript":"^5.9.3","@types/node":"^25.0.9","@vitest/coverage-v8":"^4.0.17","prettier-plugin-lint-md":"^1.0.1","prettier-plugin-sort-json":"^4.2.0","prettier-plugin-tailwindcss":"^0.7.2","prettier-plugin-organize-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.3.0_1768924167989_0.4992662675072326","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768924168115,"_cnpm_publish_time":1768924168115},"1.2.2":{"name":"json-web3","version":"1.2.2","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.2.2","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"5d7aa91ea7861e4974ffb1aa05f952f6484efc56","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.2.2.tgz","fileCount":9,"integrity":"sha512-9D5JU4YvmQWLkehwUjMa8/Dy1MrL3IEaH4QmkPZ9NSl5oIKrYVmjWIRj7+/lehYNTsbvTElN1EiAXL/MuMTxCg==","signatures":[{"sig":"MEUCIBHxyXjOfoUMhvxe/wpTZ/kkn1Wf05kul5RfdO0rR+CCAiEA2yPD/JXiNMTH7TJUYxgWeGWXeKCRDZnAGHgYAfyGA1Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67599,"size":9556,"noattachment":false,"key":"/json-web3/-/json-web3-1.2.2.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-1.2.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run --coverage","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/e58fa509c7598bf28ba0c9cdbe84b765/json-web3-1.2.2.tgz","_integrity":"sha512-9D5JU4YvmQWLkehwUjMa8/Dy1MrL3IEaH4QmkPZ9NSl5oIKrYVmjWIRj7+/lehYNTsbvTElN1EiAXL/MuMTxCg==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","vite-node":"^5.3.0","typescript":"^5.9.3","@types/node":"^25.0.9","@vitest/coverage-v8":"^4.0.17","prettier-plugin-lint-md":"^1.0.1","prettier-plugin-sort-json":"^4.2.0","prettier-plugin-tailwindcss":"^0.7.2","prettier-plugin-organize-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.2.2_1768921324138_0.7844193887061084","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768921324278,"_cnpm_publish_time":1768921324278},"1.2.1":{"name":"json-web3","version":"1.2.1","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.2.1","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"5649d47f45d89560da1f5b886dbb384020a757e6","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.2.1.tgz","fileCount":9,"integrity":"sha512-RpuZeO9Opng3SJI3HI6LbP4Ny8C8hQ1neMWMHaEz8ufG+kWfol7ZoFvWRM+htrSryxPubaA+fE7Lmx24IwHy0A==","signatures":[{"sig":"MEUCIFzEZxMR7ZNwn0uzC2QUVCxB30kzyaf9OOyOgwof5v1uAiEAhi2HDI7pRPj+JyrjcbdesenM6s/YBoJ0/L06buLHMlM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67811,"size":9551,"noattachment":false,"key":"/json-web3/-/json-web3-1.2.1.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-1.2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run --coverage","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/0ab743782968b42cb4a41557ece54e3a/json-web3-1.2.1.tgz","_integrity":"sha512-RpuZeO9Opng3SJI3HI6LbP4Ny8C8hQ1neMWMHaEz8ufG+kWfol7ZoFvWRM+htrSryxPubaA+fE7Lmx24IwHy0A==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","vite-node":"^5.3.0","typescript":"^5.9.3","@types/node":"^25.0.9","@vitest/coverage-v8":"^4.0.17","prettier-plugin-lint-md":"^1.0.1","prettier-plugin-sort-json":"^4.2.0","prettier-plugin-tailwindcss":"^0.7.2","prettier-plugin-organize-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.2.1_1768920470907_0.06467092455842605","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768920471057,"_cnpm_publish_time":1768920471057},"1.2.0":{"name":"json-web3","version":"1.2.0","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.2.0","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"d557902d95f552fbcae52c3cb1fd43ebc3852bbe","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.2.0.tgz","fileCount":9,"integrity":"sha512-l5r/anNtSWkkQYPVrp+q6RLLCStF6slJQM476uZD203fdUW+mACgA5HPlsIazF/HHBNBItJNLtlKZDmH+Jalkw==","signatures":[{"sig":"MEYCIQCuoSISAad9V/v0SYG7uDfyGoIH4rS0XwN5tuuwtnkNLQIhAO+Jb4qc1XfdQ2MySoyKX/jFk+Undfmcv6drVjNr8lID","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67427,"size":9523,"noattachment":false,"key":"/json-web3/-/json-web3-1.2.0.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-1.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run --coverage","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/b0f50de7a5191e6384fad5ab8bee3f28/json-web3-1.2.0.tgz","_integrity":"sha512-l5r/anNtSWkkQYPVrp+q6RLLCStF6slJQM476uZD203fdUW+mACgA5HPlsIazF/HHBNBItJNLtlKZDmH+Jalkw==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","vite-node":"^5.3.0","typescript":"^5.9.3","@types/node":"^25.0.9","@vitest/coverage-v8":"^4.0.17","prettier-plugin-lint-md":"^1.0.1","prettier-plugin-sort-json":"^4.2.0","prettier-plugin-tailwindcss":"^0.7.2","prettier-plugin-organize-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.2.0_1768888787338_0.855449182756689","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768888787485,"_cnpm_publish_time":1768888787485},"1.1.0":{"name":"json-web3","version":"1.1.0","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.1.0","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"85e456eea5680c57b2da920369a24daeb6283d20","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.1.0.tgz","fileCount":9,"integrity":"sha512-Gp24xY6lK6RsLwEsDfXP/aA7F0UkUAYaoGInHlDkEoMzpUg+rTOxMBj/YSG9VV1ku6rUPbi6AgdV/orGEfgywA==","signatures":[{"sig":"MEQCIFFSpdm1NUrDPx+v+d7rClYeTsAsH8M2udHtbU2P9FqrAiAzT20sIi5OJQiEzMP/QdUJk7TNHehC3dSpOJqPrrPTrA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61215,"size":9043,"noattachment":false,"key":"/json-web3/-/json-web3-1.1.0.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-1.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run --coverage","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/352b286a2d42050fbad0273631d4591d/json-web3-1.1.0.tgz","_integrity":"sha512-Gp24xY6lK6RsLwEsDfXP/aA7F0UkUAYaoGInHlDkEoMzpUg+rTOxMBj/YSG9VV1ku6rUPbi6AgdV/orGEfgywA==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","vite-node":"^5.3.0","typescript":"^5.9.3","@types/node":"^25.0.9","@vitest/coverage-v8":"^4.0.17","prettier-plugin-lint-md":"^1.0.1","prettier-plugin-sort-json":"^4.2.0","prettier-plugin-tailwindcss":"^0.7.2","prettier-plugin-organize-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.1.0_1768884950785_0.2367345593987067","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768884950930,"_cnpm_publish_time":1768884950930},"1.0.2":{"name":"json-web3","version":"1.0.2","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.0.2","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"b346528749713808afadee3d5461fe896b9581cb","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.0.2.tgz","fileCount":9,"integrity":"sha512-eBA6k6sudlA92O0EZg+Q5I0tabnur8/h6A/Keop6zfFLVVaSBDngwjVm2/HhRFJGpYwUVyOoL6HjiuJwHs1LVQ==","signatures":[{"sig":"MEQCIEnZL7wMDSxZHWiH6OJthwLd5I55v991wHHF7ZberMATAiBbBYMM7II9+J2t4WiudGhw07iVmaRuaEirQ4HfC5Z5Sg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40367,"size":6849,"noattachment":false,"key":"/json-web3/-/json-web3-1.0.2.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-1.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run --coverage","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/f1ada7548b4dab1d082859f5962140c0/json-web3-1.0.2.tgz","_integrity":"sha512-eBA6k6sudlA92O0EZg+Q5I0tabnur8/h6A/Keop6zfFLVVaSBDngwjVm2/HhRFJGpYwUVyOoL6HjiuJwHs1LVQ==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","typescript":"^5.9.3","@types/node":"^25.0.9","@vitest/coverage-v8":"^4.0.17","prettier-plugin-lint-md":"^1.0.1","prettier-plugin-sort-json":"^4.2.0","prettier-plugin-tailwindcss":"^0.7.2","prettier-plugin-organize-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.0.2_1768881294666_0.30772833541188316","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768881294802,"_cnpm_publish_time":1768881294802},"1.0.1":{"name":"json-web3","version":"1.0.1","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.0.1","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"a4c4523c20b34db50f451373cb246686b92cd50e","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.0.1.tgz","fileCount":9,"integrity":"sha512-cxwtcAxkMXntYqWc05CtUaMG9rAENo3I050KcRB595qRSAl8zKH9rl6FXRnLgW7GlpI1Ev0a94dOrjtZ8pMjIQ==","signatures":[{"sig":"MEUCIQDPZf67kjyrj8sKegMgz3SIQw30lj4Avy6HzuvNm/8TaQIgQq+gAEgtAawCkvyxyrQi1D1rO56JEmuIzuhvLuFMNFQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40321,"size":6852,"noattachment":false,"key":"/json-web3/-/json-web3-1.0.1.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-1.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run --coverage","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/57bdaf8d6eed5e153d6e17fc4d34ff76/json-web3-1.0.1.tgz","_integrity":"sha512-cxwtcAxkMXntYqWc05CtUaMG9rAENo3I050KcRB595qRSAl8zKH9rl6FXRnLgW7GlpI1Ev0a94dOrjtZ8pMjIQ==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","typescript":"^5.9.3","@types/node":"^25.0.9","@vitest/coverage-v8":"^4.0.17","prettier-plugin-lint-md":"^1.0.1","prettier-plugin-sort-json":"^4.2.0","prettier-plugin-tailwindcss":"^0.7.2","prettier-plugin-organize-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.0.1_1768880742179_0.2855171994646042","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768880742306,"_cnpm_publish_time":1768880742306},"1.0.0":{"name":"json-web3","version":"1.0.0","keywords":["json","bigint","arraybuffer","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@1.0.0","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"f297b64109b4594b032e16b8179044be39f439c5","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-1.0.0.tgz","fileCount":9,"integrity":"sha512-ouKXuCJyS+C9k5cvPBr7GwZIEa3XzdRKB+HH5qd/KXhKnhIws++jiw8Avzn8V5L4Bx0A02S+bJB0+1r03dqX0Q==","signatures":[{"sig":"MEUCIApmIK/hldSy7NeCanb8UgQH7f0Q/iIXnAZl+gN3f5NWAiEA+JE+1/HUdPnrhwuTUPLPimyEr3b20lkxFmBx0DemcB8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26571,"size":5228,"noattachment":false,"key":"/json-web3/-/json-web3-1.0.0.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run","build":"tsup","coverage":"vitest run --coverage","test:watch":"vitest","test:coverage":"pnpm run coverage"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/495f4280c667bc02be5dddb16ad36450/json-web3-1.0.0.tgz","_integrity":"sha512-ouKXuCJyS+C9k5cvPBr7GwZIEa3XzdRKB+HH5qd/KXhKnhIws++jiw8Avzn8V5L4Bx0A02S+bJB0+1r03dqX0Q==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","typescript":"^5.9.3","@types/node":"^25.0.9","@vitest/coverage-v8":"^4.0.17","prettier-plugin-lint-md":"^1.0.1","prettier-plugin-sort-json":"^4.2.0","prettier-plugin-tailwindcss":"^0.7.2","prettier-plugin-organize-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_1.0.0_1768876217122_0.3271907627057762","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768876217260,"_cnpm_publish_time":1768876217260},"0.1.1":{"name":"json-web3","version":"0.1.1","keywords":["json","bigint","serialization","deserialization","web3"],"author":{"name":"haozi"},"license":"MIT","_id":"json-web3@0.1.1","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/json-web3#readme","bugs":{"url":"https://github.com/haozi/json-web3/issues"},"dist":{"shasum":"18ef9c97c9ce93c697e0ddb114cf9cad5af81c73","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-0.1.1.tgz","fileCount":9,"integrity":"sha512-DG7hJughr+4FlwRteM5/h9opMP+NgFvPrHZhYc8zhl/nVQgg5RWOB31oNRsCQ5dEoYLEGDjhkbQDsEa6q2NAfg==","signatures":[{"sig":"MEQCIAmQcCZ2fTR8HCSff5pAiXnxVCDnLcU6tisGp8J7S4oSAiAi8MHAJ8QEFZfHQp5aEVWGEy7gSyv6N7Qi5dKeX99vFA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10640,"size":3306,"noattachment":false,"key":"/json-web3/-/json-web3-0.1.1.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/8104af4ad7969e709664c068a7f6a50e/json-web3-0.1.1.tgz","_integrity":"sha512-DG7hJughr+4FlwRteM5/h9opMP+NgFvPrHZhYc8zhl/nVQgg5RWOB31oNRsCQ5dEoYLEGDjhkbQDsEa6q2NAfg==","repository":{"url":"git+https://github.com/haozi/json-web3.git","type":"git"},"_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","typescript":"^5.9.3","@types/node":"^25.0.9"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_0.1.1_1768839695940_0.9292633040536693","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768839696099,"_cnpm_publish_time":1768839696099},"0.1.0":{"name":"json-web3","version":"0.1.0","keywords":["json","bigint","serialization","deserialization","web3"],"license":"MIT","_id":"json-web3@0.1.0","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"dist":{"shasum":"8f81802332dd5be746c40ab9c7fc3d264ec7c06c","tarball":"http://registry-npm.ywwl.com/json-web3/download/json-web3-0.1.0.tgz","fileCount":9,"integrity":"sha512-30RlWC37YZTLDrTyh30Gyh+3t6OffXTPEaU+KZI/xca6e93x2JXHJim732xRcOFoaZZ0nzgG8fLSVvYfvuK36w==","signatures":[{"sig":"MEUCICMhWbVNqWiYyO2CBkBQVlWpO8IMZVtObqi0MA8eTNe3AiEAiHFcbeaWK2MhwSSpUsGExwh4IJ+vTnAbohhf3IkeC5A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10427,"size":3226,"noattachment":false,"key":"/json-web3/-/json-web3-0.1.0.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:json-web3-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"prettier . --write","test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_resolved":"/private/var/folders/6v/347fgvv55r98rd1g1y8n_zzc0000gp/T/d2fe76574421bd083e954239f0dc8be2/json-web3-0.1.0.tgz","_integrity":"sha512-30RlWC37YZTLDrTyh30Gyh+3t6OffXTPEaU+KZI/xca6e93x2JXHJim732xRcOFoaZZ0nzgG8fLSVvYfvuK36w==","_npmVersion":"11.6.2","description":"BigInt-safe JSON serialization and deserialization for Web3 use cases.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.17","prettier":"^3.8.0","typescript":"^5.9.3","@types/node":"^25.0.9"},"_npmOperationalInternal":{"tmp":"tmp/json-web3_0.1.0_1768838924574_0.8868842006958642","host":"s3://npm-registry-packages-npm-production"},"publish_time":1768838924705,"_cnpm_publish_time":1768838924705}},"readme":"# json-web3\n\n[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/haozi/json-web3/deploy.yml)](https://github.com/haozi/json-web3/actions)\n[![npm](https://img.shields.io/npm/v/json-web3.svg)](https://www.npmjs.com/package/json-web3)\n[![codecov](https://codecov.io/gh/haozi/json-web3/branch/main/graph/badge.svg)](https://app.codecov.io/gh/haozi/json-web3)\n[![contributors](https://img.shields.io/github/contributors/haozi/json-web3)](https://github.com/haozi/json-web3/graphs/contributors)\n[![LICENSE](https://img.shields.io/npm/l/json-web3)](https://github.com/haozi/json-web3/blob/main/LICENSE)\n[![Size](https://img.shields.io/bundlejs/size/json-web3.svg)](https://cdn.jsdelivr.net/npm/json-web3/+esm)\n\nBigInt-safe JSON serialization and deserialization for Web3 data.\n\n## Install\n\n```bash\npnpm add json-web3\n# or\nnpm i json-web3\n# or\nyarn add json-web3\n```\n\n## Usage\n\n```ts\nimport jsonWeb3 from 'json-web3'\n\nconst payload = {\n  balance: 1234567890123456789n,\n  decimals: 18n,\n  u8Array: new Uint8Array([1, 2, 3, 255]),\n  u16Array: new Uint16Array([1, 2, 3, 255]),\n  bigIntArray: new BigInt64Array([18446744073709551615n, 2n, 3n, 255n]),\n  createdAt: new Date('2020-01-02T03:04:05.006Z'),\n  ids: new Set([123, 456]),\n  headers: new Map([['hello', 'world']]),\n  re: /([^\\s]+)/g,\n  url: new URL('https://example.com/'),\n  fn: function echo(arg) {\n    return arg\n  },\n}\n\nconst text = jsonWeb3.stringify(payload)\n// => {\"balance\":{\"__@json.bigint__\":\"1234567890123456789\"},\"decimals\":{\"__@json.bigint__\":\"18\"},\"u8Array\":{\"__@json.typedarray__\":{\"type\":\"Uint8Array\",\"bytes\":\"0x010203ff\"}},\"u16Array\":{\"__@json.typedarray__\":{\"type\":\"Uint16Array\",\"bytes\":\"0x010002000300ff00\"}},\"bigIntArray\":{\"__@json.typedarray__\":{\"type\":\"BigInt64Array\",\"bytes\":\"0xffffffffffffffff02000000000000000300000000000000ff00000000000000\"}}}\n\nconst restored = jsonWeb3.parse(text)\n/* =>\n  {\n    balance: 1234567890123456789n,\n    decimals: 18n,\n    u8Array: Uint8Array(4) [1, 2, 3, 255]...,\n    u16Array: Uint16Array(4)...,\n    bigIntArray: BigInt64Array(4)...,\n    createdAt: Date(...),\n    ids: Set(2) {...},\n    headers: Map(1) {...},\n    re: /([^\\s]+)/g,\n    url: URL(...),\n    fn: undefined\n  }\n*/\n\nconst textUnsafe = jsonWeb3.stringify_UNSAFE(payload)\nconst restoredUnsafe = jsonWeb3.parse_UNSAFE(textUnsafe)\n// restoredUnsafe.fn is a callable function\n```\n\n## Full example\n\n```ts\nimport jsonWeb3 from 'json-web3'\n\nwindow.JSON = jsonWeb3 // Yes, you can replace it directly; it is fully compatible.\n```\n\n## API (Fully compatible with native globalThis.JSON)\n\n- `stringify(value, replacer?, space?)`\n- `parse(text, reviver?)`\n- `stringify_UNSAFE(value, replacer?, space?)` (serializes `Function` payloads)\n- `parse_UNSAFE(text, reviver?)` (revives `Function` payloads via `new Function(...)`)\n\n## Type support\n\n| type                | supported by standard JSON? | supported by json-web3?               |\n| ------------------- | --------------------------- | ------------------------------------- |\n| `string`            | ✅                          | ✅                                    |\n| `number`            | ✅                          | ✅                                    |\n| `boolean`           | ✅                          | ✅                                    |\n| `null`              | ✅                          | ✅                                    |\n| `Array`             | ✅                          | ✅                                    |\n| `Object`            | ✅                          | ✅                                    |\n| `undefined`         | ❌                          | ❌                                    |\n| `Infinity`          | ❌                          | ✅                                    |\n| `-Infinity`         | ❌                          | ✅                                    |\n| `NaN`               | ❌                          | ✅                                    |\n| `BigInt`            | ❌                          | ✅                                    |\n| `Date`              | ❌                          | ✅                                    |\n| `RegExp`            | ❌                          | ✅                                    |\n| `Set`               | ❌                          | ✅                                    |\n| `Map`               | ❌                          | ✅                                    |\n| `URL`               | ❌                          | ✅                                    |\n| `ArrayBuffer`       | ❌                          | ✅                                    |\n| `Uint8Array`        | ❌                          | ✅                                    |\n| `Uint8ClampedArray` | ❌                          | ✅                                    |\n| `Uint16Array`       | ❌                          | ✅                                    |\n| `Uint32Array`       | ❌                          | ✅                                    |\n| `Int8Array`         | ❌                          | ✅                                    |\n| `Int16Array`        | ❌                          | ✅                                    |\n| `Int32Array`        | ❌                          | ✅                                    |\n| `Float16Array`      | ❌                          | ✅                                    |\n| `Float32Array`      | ❌                          | ✅                                    |\n| `Float64Array`      | ❌                          | ✅                                    |\n| `BigInt64Array`     | ❌                          | ✅                                    |\n| `BigUint64Array`    | ❌                          | ✅                                    |\n| `Function`          | ❌                          | ✅ ⚠️(use UNSAFE api, it's dangerous) |\n\n## Note\n\n- `bigint` values are encoded as objects: `{\"__@json.bigint__\":\"<value>\"}`.\n- Non-finite numbers (`NaN`, `Infinity`, `-Infinity`) are encoded as `{\"__@json.number__\":\"<value>\"}`.\n- `Date` values are encoded as `{\"__@json.date__\":<timestamp>}`.\n- `Map` values are encoded as `{\"__@json.map__\":[[k,v],...]}` and `Set` values as `{\"__@json.set__\":[...]}`.\n- `RegExp` values are encoded as `{\"__@json.regexp__\":{\"source\":\"...\",\"flags\":\"...\"}}`.\n- `URL` values are encoded as `{\"__@json.url__\":\"...\"}`.\n- `Function` values are encoded as `{\"__@json.function__\":\"<source>\"}` by `stringify_UNSAFE` and are only revived by `parse_UNSAFE` using `new Function(...)` (using the UNSAFE function pair is dangerous; make sure your data is trusted).\n- `ArrayBuffer` values are encoded as `{\"__@json.arraybuffer__\":{\"bytes\":\"0x...\"}}` and decoded back to `ArrayBuffer`.\n- Node `Buffer` JSON shapes and typed arrays are encoded as `{\"__@json.typedarray__\":{\"type\":\"<Name>\",\"bytes\":\"0x...\"}}` and decoded back to the original typed array (`Uint8Array`, `Uint8ClampedArray`, `Uint16Array`, `Uint32Array`, `Int8Array`, `Int16Array`, `Int32Array`, `Float32Array`, `Float64Array`, `BigInt64Array`, `BigUint64Array`).\n\nCompared to libraries that require eval-based parsing (for example, `serialize-javascript`), this approach is generally safer and more efficient.\n\n## RFC (Serialization Format)\n\nTo enable cross-language interoperability, the serialization format is specified\nin [RFC.md](RFC.md). It defines the canonical tag objects, payload shapes, validation\nrules, and UNSAFE function handling.\n","_attachments":{},"homepage":"https://github.com/JSON-Web3/json-web3#readme","bugs":{"url":"https://github.com/JSON-Web3/json-web3/issues"},"license":"MIT"}