PageSourceSearch

https://jsonlint.com/_next/static/chunks/app/layout-d5c6d40efabfa165.js

js jsonlint.com collected 2026-09-24 08:23:53 UTC 34,245 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{4853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return s},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},s="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12770:(e,t,r)=>{"use strict";r.d(t,{Footer:()=>h});var s=r(95155),n=r(52619),a=r.n(n),l=r(12115);function o(e){let{command:t}=e,[r,n]=(0,l.useState)(!1),a=async()=>{try{await navigator.clipboard.writeText(t),n(!0),setTimeout(()=>n(!1),2e3)}catch(e){}};return(0,s.jsxs)("button",{onClick:a,className:"inline-flex items-center gap-2 px-2.5 py-1.5 rounded-md font-mono text-xs transition-colors hover:bg-[var(--bg-secondary)]",style:{background:"var(--bg-tertiary)",color:"var(--text-primary)",border:"1px solid var(--border-primary)"},title:r?"Copied!":"Copy to clipboard","aria-label":r?"Copied":"Copy: ".concat(t),children:[(0,s.jsx)("span",{"aria-hidden":"true",style:{color:"var(--text-muted)"},children:"$"}),(0,s.jsx)("span",{children:t}),r?(0,s.jsx)(c,{className:"w-3.5 h-3.5"}):(0,s.jsx)(i,{className:"w-3.5 h-3.5"})]})}function i(e){let{className:t}=e;return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,s.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function c(e){let{className:t}=e;return(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,style:{color:"var(--accent-green)"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})})}var d=r(24047);let u={tools:[{href:"/",label:"JSON Validator"},{href:"/json-pretty-print",label:"Pretty Print"},{href:"/json-minify",label:"JSON Minify"},{href:"/json-diff",label:"Compare JSON"},{href:"/json-tree",label:"Tree Viewer"},{href:"/json-schema",label:"Schema Validator"},{href:"/json-schema-generator",label:"Schema Generator"},{href:"/json-path",label:"JSON Path"}],converters:[{href:"/json-to-csv",label:"JSON to CSV"},{href:"/json-to-excel",label:"JSON to Excel"},{href:"/json-to-sql",label:"JSON to SQL"},{href:"/sql-to-json",label:"SQL to JSON"},{href:"/json-to-yaml",label:"JSON to YAML"},{href:"/json-to-xml",label:"JSON to XML"},{href:"/json-to-java",label:"JSON to Java"},{href:"/json-to-python",label:"JSON to Python"}],learn:[{href:"/learn",label:"All Resources"},{href:"/python-json",label:"Python JSON Guide"},{href:"/json-parse-error",label:"Fix Parse Errors"},{href:"/json-lines",label:"JSON Lines Guide"},{href:"/json-vs-xml",label:"JSON vs XML"},{href:"/json-comments",label:"JSON Comments"},{href:"/how-to-open-json-file",label:"Open JSON Files"}],datasets:[{href:"/datasets/http-status-codes",label:"HTTP Status Codes"},{href:"/datasets/programming-languages",label:"Programming Languages"},{href:"/datasets/file-extensions",label:"File Extensions"},{href:"/datasets/config-package",label:"package.json Template"},{href:"/datasets/config-tsconfig",label:"tsconfig.json Template"}],friends:[{href:"https://fr.sh/7ee613",label:"Fullres",external:!0},{href:"https://chartkit.dev",label:"ChartKit",external:!0},{href:"https://markdowneditor.org",label:"Markdown Editor",external:!0},{href:"https://jscompress.com/",label:"JSCompress",external:!0},{href:"https://randomkeygen.com/",label:"RandomKeygen",external:!0},{href:"https://jsoncompare.com/",label:"JSONCompare",external:!0},{href:"https://validatejavascript.com/",label:"ValidateJavaScript",external:!0}]};function m(e){let{title:t,links:r,viewAllHref:n,viewAllLabel:l}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-mono text-xs font-semibold uppercase tracking-wider mb-4",style:{color:"var(--text-primary)"},children:t}),(0,s.jsxs)("ul",{className:"space-y-2.5",children:[r.map(e=>(0,s.jsx)("li",{children:e.external?(0,s.jsx)("a",{href:e.href,rel:"noopener noreferrer",className:"text-sm hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-secondary)"},children:e.label}):(0,s.jsx)(a(),{href:e.href,className:"text-sm hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-secondary)"},children:e.label})},e.href)),n&&(0,s.jsx)("li",{className:"pt-1",children:(0,s.jsxs)(a(),{href:n,className:"text-sm font-medium hover:text-[var(--accent-blue)] transition-colors inline-flex items-center gap-1",style:{color:"var(--text-muted)"},children:[l||"View all"," ",(0,s.jsx)("span",{"aria-hidden":"true",children:"→"})]})})]})]})}function h(){let{width:e}=(0,d.g)();
1return(0,s.jsx)("footer",{className:"border-t mt-auto pb-24",style:{background:"var(--bg-secondary)",borderColor:"var(--border-primary)"},children:(0,s.jsxs)("div",{className:"".concat("fixed"===e?"max-w-7xl":""," mx-auto px-4 sm:px-6 lg:px-8 py-12"),children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-x-8 gap-y-10",children:[(0,s.jsx)(m,{title:"Tools",links:u.tools,viewAllHref:"/tools",viewAllLabel:"All tools"}),(0,s.jsx)(m,{title:"Converters",links:u.converters,viewAllHref:"/tools",viewAllLabel:"All converters"}),(0,s.jsx)(m,{title:"Learn",links:u.learn}),(0,s.jsx)(m,{title:"Datasets",links:u.datasets,viewAllHref:"/datasets",viewAllLabel:"All datasets"}),(0,s.jsx)(m,{title:"Friends",links:u.friends})]}),(0,s.jsxs)("div",{className:"mt-12 pt-8 border-t flex flex-col md:flex-row md:items-center gap-4 md:gap-6",style:{borderColor:"var(--border-primary)"},children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"font-mono text-xs font-semibold uppercase tracking-wider mb-1",style:{color:"var(--text-secondary)"},children:"Open source"}),(0,s.jsxs)("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:["JSONLint's validator runs on"," ",(0,s.jsx)("a",{href:"https://github.com/toddynho/jsonlint-core",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-secondary)"},children:"@jsonlint/core"})," ","— the same engine, free to use in your own projects."]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3 md:ml-auto",children:[(0,s.jsx)(o,{command:"npm install @jsonlint/core"}),(0,s.jsx)("a",{href:"https://github.com/toddynho/jsonlint-core",target:"_blank",rel:"noopener noreferrer",className:"text-sm hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-muted)"},children:"GitHub ↗"}
1),(0,s.jsx)("a",{href:"https://www.npmjs.com/package/@jsonlint/core",target:"_blank",rel:"noopener noreferrer",className:"text-sm hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-muted)"},children:"npm ↗"})]})]}),(0,s.jsxs)("div",{className:"mt-12 pt-8 border-t flex flex-col sm:flex-row items-center justify-between gap-4",style:{borderColor:"var(--border-primary)"},children:[(0,s.jsxs)("div",{className:"text-sm flex items-center gap-2",style:{color:"var(--text-muted)"},children:[(0,s.jsxs)("span",{children:["\xa9 ",new Date().getFullYear()," JSONLint.com. Made with ❤️ for developers."]}),(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)("span",{children:["Hosted by"," ",(0,s.jsx)("a",{href:"https://ready.dev?ref=jsonlint.com",rel:"noopener noreferrer",className:"hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-muted)"},children:"ready.dev"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-6 text-sm flex-wrap justify-center sm:justify-end",children:[(0,s.jsx)(a(),{href:"/about",className:"hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-muted)"},children:"About"}),(0,s.jsx)(a(),{href:"/privacy",className:"hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-muted)"},children:"Privacy"}),(0,s.jsx)(a(),{href:"/json-formatter/chrome-extension",className:"hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-muted)"},children:"Chrome Extension"}),(0,s.jsx)("a",{href:"https://apps.apple.com/us/app/jsonlint-pro/id6757896437?mt=12",rel:"noopener noreferrer",className:"hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-muted)"},children:"Mac App"}),(0,s.jsx)("a",{href:"https://github.com/circlecell/jsonlint",rel:"noopener noreferrer",className:"hover:text-[var(--accent-blue)] transition-colors",style:{color:"var(--text-muted)"},children:"GitHub"})]})]})]})})}},16174:(e,t,r)=>{"use strict";r.d(t,{D:()=>i,ThemeProvider:()=>o});var s=r(95155),n=r(12115);let a=(0,n.createContext)(void 0);function l(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function o(e){let{children:t}=e,[r,o]=(0,n.useState)("system"),[i,c]=(0,n.useState)("light"),d=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{let e=localStorage.getItem("jsonlint-theme")||"system";o(e),c("system"===e?l():e)},[]),(0,n.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{"system"===r&&c(e.matches?"dark":"light")};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[r]),(0,n.useEffect)(()=>{if(!d.current){d.current=!0;return}document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(i)},[i]),(0,s.jsx)(a.Provider,{value:{theme:r,resolvedTheme:i,setTheme:e=>{o(e),localStorage.setItem("jsonlint-theme",e),c("system"===e?l():e)}},children:t})}function i(){let e=(0,n.useContext)(a);return e||{theme:"system",resolvedTheme:"light",setTheme:()=>{}}}},20063:(e,t,r)=>{"use strict";var s=r(47260);r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})},20369:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},24047:(e,t,r)=>{"use strict";r.d(t,{LayoutProvider:()=>o,g:()=>i});var s=r(95155),n=r(12115);let a=(0,n.createContext)(void 0),l="jsonlint-layout-width";function o(e){let{children:t}=e,[r,o]=(0,n.useState)("fixed"),[i,c]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=localStorage.getItem(l);("fixed"===e||"full"===e)&&o(e),c(!0)},[]);let d=e=>{o(e),localStorage.setItem(l,e)};return i?(0,s.jsx)(a.Provider,{value:{width:r,setWidth:d,toggleWidth:()=>{d("fixed"===r?"full":"fixed")}},children:t}):(0,s.jsx)(a.Provider,{value:{width:"fixed",setWidth:()=>{},toggleWidth:()=>{}},children:t})}function i(){let e=(0,n.useContext)(a);return e||{width:"fixed",setWidth:()=>{},toggleWidth:()=>{}}}},29001:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ESCAPE_REGEX:function(){return s},htmlEscapeAttributeString:function(){return o},htmlEscapeJsonString:function(){return l}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},s=/[&><\u2028\u2029]/g,n={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},a=/[&"'<>]/g;function l(e){return e.replace(s,e=>r[e])}function o(e){return e.replace(a,e=>n[e])}},40188:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_3c557b",variable:"__variable_3c557b"}},41402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return b},handleClientScriptLoad:function(){return x},initScriptLoader:function(){return p}});let s=r(28140),n=r(49417),a=r(95155),l=s._(r(47650)),o=n._(r(12115)),i=r(82073),c=r(94681),d=r(4853),u=r(29001),m=new Map,h=new Set,f=e=>{let{src:t,id:r,onLoad:s=()=>{},onReady:n=null,dangerouslySetInnerHTML:a,children:o="",strategy:i="afterInteractive",onError:d,stylesheets:u}=e,f=r||t;if(f&&h.has(f))return;if(m.has(t)){h.add(f),m.get(t).then(s,d);return}let x=()=>{n&&n(),h.add(f)},p=document.createElement("script"),v=new Promise((e,t)=>{p.addEventListener("load",function(t){e(),s&&s.call(this,t),x()}),p.addEventListener("error",function(e){t(e)})}).catch(function(e){d&&d(e)});a?(p.innerHTML=a.__html||"",x()):o?(p.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",x()):t&&(p.src=t,m.set(t,v)),(0,c.setAttributesFromProps)(p,e),"worker"===i&&p.setAttribute("type","text/partytown"),p.setAttribute("data-nscript",i),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(p)};function x(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>f(e))}):f(e)}function p(e){e.forEach(x),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function v(e){let{id:t,src:r="",onLoad:s=()=>{},onReady:n=null,strategy:c="afterInteractive",onError:m,stylesheets:x,...p}=e,{updateScripts:v,scripts:b,getIsSsr:y,appDir:j,nonce:g}=(0,o.useContext)(i.HeadManagerContext);g=p.nonce||g;let N=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=t||r;N.current||(n&&e&&h.has(e)&&n(),N.current=!0)},[n,t,r]);let w=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{if(!w.current){if("afterInteractive"===c)f(e);else"lazyOnload"===c&&("complete"===document.readyState?(0,d.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>f(e))}));w.current=!0}},[e,c]),("beforeInteractive"===c||"worker"===c)&&(v?(b[c]=(b[c]||[]).concat([{id:t,src:r,onLoad:s,onReady:n,onError:m,...p,nonce:g}]),v(b)):y&&y()?h.add(t||r):y&&!y()&&f({...e,nonce:g})),j){if(x&&x.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===c)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:g,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,u.htmlEscapeJsonString)(JSON.stringify([0,{...p,id:t}]))+")"}});else return l.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:g,crossOrigin:p.crossOrigin}:{as:"script",nonce:g,crossOrigin:p.crossOrigin}),(0,a.jsx)("script",{nonce:g,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,u.htmlEscapeJsonString)(JSON.stringify([r,{...p,id:t}]))+")"}});"afterInteractive"===c&&r&&l.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:g,crossOrigin:p.crossOrigin}:{as:"script",nonce:g,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let b=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42359:(e,t,r)=>{"use strict";r.d(t,{OptimizeAds:()=>l});var s=r(95155),n=r(12115),a=r(20063);function l(){let e=(0,a.usePathname)(),t=(0,n.useRef)(!0),r=(0,n.useRef)(e),l=(0,n.useCallback)(()=>{window.optimize&&window.optimize.queue.push(()=>{var e;(null==(e=window.optimize)?void 0:e.pushAll)&&window.optimize.pushAll()})},[]);return(0,n.useEffect)(()=>{if(t.current){t.current=!1,r.current=e;return}if(r.current===e)return;r.current=e;let s=setTimeout(l,100);return()=>{clearTimeout(s)}},[e,l]),(0,s.jsx)("div",{"data-optimize":"shadow-container"})}},44388:(e,t,r)=>{"use strict";r.d(t,{DelayedAdLoader:()=>o});var s=r(95155),n=r(12115),a=r(41402),l=r.n(a);function o(e){let{delay:t=6500}=e,[r,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e;function r(){e=setTimeout(()=>{a(!0)},t)}return"complete"===document.readyState?r():window.addEventListener("load",r),()=>{clearTimeout(e),window.removeEventListener("load",r)}},[t]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l(),{id:"bsaOptimizeScript",src:"https://s.bidtune.net/jsonlint/p.js",strategy:"lazyOnload"}),r&&(0,s.jsx)(l(),{id:"bsaMonetization",src:"//m.servedby-buysellads.com/monetization.custom.js",onLoad:()=>{window._bsa&&window._bsa.init("custom","CVADT27Y","placement:jsonlintcom",{target:".native-ad-container",template:'\n                <a href="##link##" class="native-ad" rel="noopener sponsored">\n                  <div class="native-ad-sponsor">\n                    <span>Sponsored by ##company##</span>\n                  </div>\n                  <div class="native-ad-content">\n                    <img class="native-ad-logo" src="##logo##" style="background-color: ##backgroundColor##" alt="##company##">\n                    <div class="native-ad-text">\n                      <div class="native-ad-tagline">##tagline##</div>\n                      <div class="native-ad-description">##description##</div>\n                      <div class="native-ad-cta">##callToAction##</div>\n                    </div>\n                  </div>\n                </a>'})}})]})}},73677:()=>{},78100:(e,t,r)=>{Promise.resolve().then(r.bind(r,44388)),Promise.resolve().then(r.bind(r,12770)),Promise.resolve().then(r.bind(r,81687)),Promise.resolve().then(r.bind(r,24047)),Promise.resolve().then(r.bind(r,79504)),Promise.resolve().then(r.bind(r,42359)),Promise.resolve().then(r.bind(r,16174)),Promise.resolve().then(r.bind(r,81896)),Promise.resolve().then(r.t.bind(r,41402,23)),Promise.resolve().then(r.t.bind(r,20369,23)),Promise.resolve().then(r.t.bind(r,40188,23)),Promise.resolve().then(r.t.bind(r,73677,23))},79504:(e,t,r)=>{"use strict";r.d(t,{MainContent:()=>n});var s=r(95155);function n(e){let{children:t}=e;return(0,s.jsx)("main",{className:"flex-1",children:t})}},81687:(e,t,r)=>{"use strict";r.d(t,{Header:()=>p});var s=r(95155),n=r(52619),a=r.n(n),l=r(12115),o=r(16174),i=r(81896),c=r(24047);let d="toddynho/jsonlint-core",u="jl_core_stars";function m(){let[e,t]=(0,l.useState)(null);return(0,l.useEffect)(()=>{try{let e=localStorage.getItem(u);if(e){let{v:r,t:s}=JSON.parse(e);if("number"==typeof r&&t(r),"number"==typeof s&&Date.now()-s<216e5)return}}catch(e){}let e=!0;return fetch("https://api.github.com/repos/".concat(d)).then(e=>e.ok?e.json():null).then(r=>{if(e&&r&&"number"==typeof r.stargazers_count){t(r.stargazers_count);try{localStorage.setItem(u,JSON.stringify({v:r.stargazers_count,t:Date.now()}))}catch(e){}}}).catch(()=>{}),()=>{e=!1}},[]),(0,s.jsxs)("a",{href:"https://github.com/".concat(d),target:"_blank",rel:"noopener noreferrer",className:"hidden sm:inline-flex items-center gap-1.5 pl-2 pr-2.5 py-1.5 rounded-md text-sm transition-colors hover:bg-[var(--bg-tertiary)]",style:{color:"var(--text-secondary)",border:"1px solid var(--border-primary)"},title:"Star @jsonlint/core on GitHub","aria-label":"Star @jsonlint/core on GitHub",children:[(0,s.jsx)(h,{className:"w-4 h-4"}),(0,s.jsx)("span",{children:"Star"}),null!==e&&(0,s.jsx)("span",{className:"font-mono text-xs px-1.5 py-0.5 rounded tabular-nums",style:{background:"var(--bg-tertiary)",color:"var(--text-primary)"},children:e>=1e3?"".concat((e/1e3).toFixed(1),"k"):String(e)})]})}function h(e){let{className:t}=e;
1return(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,"aria-hidden":"true",children:(0,s.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222 0 1.606-.014 2.898-.014 3.293 0 .322.216.694.825.576C20.565 22.092 24 17.598 24 12.297c0-6.627-5.373-12-12-12"})})}let f=[{href:"/",label:"Validator",desc:"Validate & format JSON"},{href:"/json-formatter",label:"JSON Formatter",desc:"Format & beautify JSON"},{href:"/json-minify",label:"Minify",desc:"Compress JSON"},{href:"/json-diff",label:"JSON Compare",desc:"Diff two JSON documents"},{href:"/json-schema",label:"Schema",desc:"Validate schema"},{href:"/json-path",label:"Path Finder",desc:"Query with JSONPath"},{href:"/json-tree",label:"JSON Viewer",desc:"Tree view & visualizer"},{href:"/jwt-decoder",label:"JWT Decoder",desc:"Decode JWT tokens"},{href:"/tools",label:"All Tools →",desc:"View all 35+ tools"}],x=[{href:"/json-to-csv",label:"JSON → CSV",desc:"Export to spreadsheet"},{href:"/json-to-yaml",label:"JSON → YAML",desc:"Convert to YAML"},{href:"/json-to-xml",label:"JSON → XML",desc:"Convert to XML"},{href:"/json-to-typescript",label:"JSON → TypeScript",desc:"Generate types"},{href:"/json-to-python",label:"JSON → Python",desc:"Generate classes"},{href:"/json-to-markdown",label:"JSON → Markdown",desc:"Create tables"},{href:"/json-base64",label:"Base64",desc:"Encode/decode Base64"},{href:"/tools",label:"All Converters →",desc:"View all 20+ converters"}];function p(){let{theme:e,resolvedTheme:t,setTheme:r}=(0,o.D)(),{status:n}=(0,i.$)(),{width:d,toggleWidth:u}=(0,c.g)(),[h,p]=(0,l.useState)(!1),[_,M]=(0,l.useState)(!1),[E,P]=(0,l.useState)(!1),[J,A]=(0,l.useState)(!1),T=(0,l.useRef)(null),I=(0,l.useRef)(null),F=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=e=>{T.current&&!T.current.contains(e.target)&&p(!1),I.current&&!I.current.contains(e.target)&&M(!1),F.current&&!F.current.contains(e.target)&&P(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.jsx)("header",{className:"sticky top-0 z-50 border-b",style:{background:"var(--bg-primary)",borderColor:"var(--border-primary)"},children:(0,s.jsxs)("div",{className:"".concat("fixed"===d?"max-w-7xl":""," mx-auto px-4 sm:px-6 lg:px-8"),children:[(0,s.jsxs)("div",{className:"flex h-14 items-center justify-between",children:[(0,s.jsxs)(a(),{href:"/",className:"flex items-center gap-3 group",children:[(0,s.jsx)(v,{className:"w-8 h-8",status:n}),(0,s.jsxs)("span",{className:"font-bold text-lg tracking-tight",style:{color:"var(--text-primary)",fontFamily:"'Inter', -apple-system, sans-serif",letterSpacing:"-0.02em"},children:["JSON",(0,s.jsx)("span",{style:{color:"#0A84FF"},children:"Lint"})]})]}),(0,s.jsxs)("nav",{className:"hidden md:flex items-center gap-1",children:[(0,s.jsxs)("div",{className:"relative",ref:I,children:[(0,s.jsxs)("button",{onClick:()=>{M(!_),P(!1)},className:"nav-link flex items-center gap-1",children:["Tools",(0,s.jsx)(N,{className:"w-4 h-4 transition-transform ".concat(_?"rotate-180":"")})]}),_&&(0,s.jsx)("div",{className:"absolute left-0 mt-1 w-56 rounded-lg border shadow-lg overflow-hidden animate-fade-in",style:{background:"var(--bg-secondary)",borderColor:"var(--border-primary)"},children:f.map(e=>(0,s.jsxs)(a(),{href:e.href,onClick:()=>M(!1),className:"flex flex-col px-4 py-2.5 hover:bg-[var(--bg-tertiary)] transition-colors",children:[(0,s.jsx)("span",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:e.label}),(0,s.jsx)("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:e.desc})]},e.href))})]}),(0,s.jsxs)("div",{className:"relative",ref:F,children:[(0,s.jsxs)("button",{onClick:()=>{P(!E),M(!1)},className:"nav-link flex items-center gap-1",children:["Convert",(0,s.jsx)(N,{className:"w-4 h-4 transition-transform ".concat(E?"rotate-180":"")})]}),E&&(0,s.jsx)("div",{className:"absolute left-0 mt-1 w-56 rounded-lg border shadow-lg overflow-hidden animate-fade-in",style:{background:"var(--bg-secondary)",borderColor:"var(--border-primary)"},children:x.map(e=>(0,s.jsxs)(a(),{href:e.href,onClick:()=>P(!1),className:"flex flex-col px-4 py-2.5 hover:bg-[var(--bg-tertiary)] transition-colors",children:[(0,s.jsx)("span",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:e.label}),(0,s.jsx)("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:e.desc})]},e.href))})]}),(0,s.jsx)(a(),{href:"/learn",className:"nav-link",children:"Learn"}),(0,s.jsx)(a(),{href:"/datasets",className:"nav-link",children:"Datasets"}),(0,s.jsx)("div",{className:"w-px h-5 mx-2",style:{background:"var(--border-primary)"}}),(0,s.jsxs)(a(),{href:"/json-formatter/chrome-extension",className:"nav-link flex items-center gap-1.5 text-sm",children:[(0,s.jsx)(S,{className:"w-4 h-4"}),"Extension"]}),(0,s.jsxs)(a(),{href:"/pro",className:"nav-link flex items-center gap-1.5 text-sm",children:[(0,s.jsx)(C,{className:"w-4 h-4"}),"Mac App"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(m,{}),(0,s.jsx)("button",{onClick:u,className:"hidden sm:flex p-2 rounded-md hover:bg-[var(--bg-tertiary)] transition-colors",style:{color:"var(--text-secondary)"},"aria-label":"fixed"===d?"Expand to full width":"Use fixed width",title:"fixed"===d?"Expand to full width":"Use fixed width",children:"fixed"===d?(0,s.jsx)(L,{className:"w-5 h-5"}):(0,s.jsx)(O,{className:"w-5 h-5"})}),(0,s.jsxs)("div",{className:"relative",ref:T,children:[(0,s.jsx)("button",{onClick:()=>p(!h),className:"p-2 rounded-md hover:bg-[var(--bg-tertiary)] transition-colors",style:{color:"var(--text-secondary)"},"aria-label":"Toggle theme",children:"dark"===t?(0,s.jsx)(y,{className:"w-5 h-5"}):(0,s.jsx)(b,{className:"w-5 h-5"})}),h&&(0,s.jsx)("div",{className:"absolute right-0 mt-1 w-36 rounded-lg border shadow-lg overflow-hidden animate-fade-in",style:{background:"var(--bg-secondary)",borderColor:"var(--border-primary)"},children:[{value:"light",label:"Light",icon:b},{value:"dark",label:"Dark",icon:y},{value:"system",label:"System",icon:j}].map(t=>(0,s.jsxs)("button",{onClick:()=>{r(t.value),p(!1)},className:"w-full flex items-center gap-2 px-3 py-2 text-sm transition-colors hover:bg-[var(--bg-tertiary)] ".concat(e===t.value?"bg-[var(--bg-tertiary)]":""),style:{color:"var(--text-primary)"},children:[(0,s.jsx)(t.icon,{className:"w-4 h-4"}),t.label,e===t.value&&(0,s.jsx)(g,{className:"w-4 h-4 ml-auto",style:{color:"var(--accent-green)"}})]},t.value))})]}),(0,s.jsx)("button",{onClick:()=>A(!J),className:"md:hidden p-2 rounded-md hover:bg-[var(--bg-tertiary)] transition-colors",style:{color:"var(--text-secondary)"},"aria-label":"Open menu",children:J?(0,s.jsx)(k,{className:"w-5 h-5"}):(0,s.jsx)(w,{className:"w-5 h-5"})})]})]}),J&&(0,s.jsx)("div",{className:"md:hidden py-4 border-t animate-fade-in",style:{borderColor:"var(--border-primary)"},children:(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("div",{className:"px-2 py-1 text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"Tools"}),f.map(e=>(0,s.jsx)(a(),{href:e.href,onClick:()=>A(!1),className:"block px-2 py-2 text-sm rounded-md hover:bg-[var(--bg-tertiary)]",style:{color:"var(--text-primary)"},children:e.label},e.href)),(0,s.jsx)("div",{className:"px-2 py-1 mt-3 text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"Converters"}),x.map(e=>(0,s.jsx)(a(),{href:e.href,onClick:()=>A(!1),className:"block px-2 py-2 text-sm rounded-md hover:bg-[var(--bg-tertiary)]",style:{color:"var(--text-primary)"},children:e.label},e.href)),(0,s.jsxs)("div",{className:"pt-3 mt-3 border-t",style:{borderColor:"var(--border-primary)"},children:[(0,s.jsx)(a(),{href:"/learn",onClick:()=>A(!1),className:"block px-2 py-2 text-sm rounded-md hover:bg-[var(--bg-tertiary)]",style:{color:"var(--text-primary)"},children:"Learn JSON"}),(0,s.jsx)(a(),{href:"/datasets",onClick:()=>A(!1),className:"block px-2 py-2 text-sm rounded-md hover:bg-[var(--bg-tertiary)]",style:{color:"var(--text-primary)"},children:"Datasets"}),(0,s.jsxs)(a(),{href:"/json-formatter/chrome-extension",onClick:()=>A(!1),className:"flex items-center gap-2 px-2 py-2 text-sm rounded-md hover:bg-[var(--bg-tertiary)]",style:{color:"var(--text-primary)"},children:[(0,s.jsx)(S,{className:"w-4 h-4"}),"Chrome Extension"]})]})]})})]})})}function v(e){let{className:t,status:r}=e;
1return(0,s.jsxs)("svg",{viewBox:"0 0 64 64",fill:"none",className:t,children:[(0,s.jsx)("rect",{width:"64",height:"64",rx:"14",fill:"#0A84FF"}),(0,s.jsx)("text",{x:"32",y:"44",textAnchor:"middle",fill:"white",fontFamily:"'SF Mono', 'JetBrains Mono', monospace",fontWeight:"600",fontSize:"32",children:"{}"}),"invalid"===r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"52",cy:"12",r:"10",fill:"#FF453A"}),(0,s.jsx)("path",{d:"M48 8L56 16M56 8L48 16",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"52",cy:"12",r:"10",fill:"#32D74B"}),(0,s.jsx)("path",{d:"M47 12L50.5 15.5L57 9",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]})}function b(e){let{className:t}=e;return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,s.jsx)("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]})}function y(e){let{className:t}=e;return(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:(0,s.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}function j(e){let{className:t}=e;return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,s.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"}),(0,s.jsx)("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),(0,s.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]})}function g(e){let{className:t,style:r}=e;return(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,style:r,children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})})}function N(e){let{className:t}=e;return(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:(0,s.jsx)("polyline",{points:"6 9 12 15 18 9"})})}function w(e){let{className:t}=e;return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,s.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),(0,s.jsx)("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),(0,s.jsx)("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})}function k(e){let{className:t}=e;return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,s.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,s.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function S(e){let{className:t}=e;return(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,children:(0,s.jsx)("path",{d:"M12 0C8.21 0 4.831 1.757 2.632 4.501l3.953 6.848A5.454 5.454 0 0 1 12 6.545h10.691A12 12 0 0 0 12 0zM1.931 5.47A11.943 11.943 0 0 0 0 12c0 6.012 4.42 10.991 10.189 11.864l3.953-6.847a5.45 5.45 0 0 1-6.865-2.29zm13.342 2.166a5.446 5.446 0 0 1 1.45 7.09l.002.001h-.002l-3.952 6.848a12.014 12.014 0 0 0 9.229-9.575z"})})}function C(e){let{className:t}=e;return(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,children:(0,s.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})})}function L(e){let{className:t}=e;return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,s.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,s.jsx)("polyline",{points:"9 21 3 21 3 15"}),(0,s.jsx)("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),(0,s.jsx)("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})}function O(e){let{className:t}=e;return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,s.jsx)("polyline",{points:"4 14 10 14 10 20"}),(0,s.jsx)("polyline",{points:"20 10 14 10 14 4"}),(0,s.jsx)("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),(0,s.jsx)("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})}},81896:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,ValidationProvider:()=>l});var s=r(95155),n=r(12115);let a=(0,n.createContext)(void 0);function l(e){let{children:t}
1=e,[r,l]=(0,n.useState)("idle"),[o,i]=(0,n.useState)(null),[c,d]=(0,n.useState)(null);return(0,s.jsx)(a.Provider,{value:{status:r,setStatus:l,errorMessage:o,setErrorMessage:i,errorLine:c,setErrorLine:d},children:t})}function o(){let e=(0,n.useContext)(a);if(!e)throw Error("useValidation must be used within a ValidationProvider");return e}}},e=>{e.O(0,[8683,2619,8441,1255,7358],()=>e(e.s=78100)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.