1:"$Sreact.fragment" 2:I[79520,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],""] 3:I[22016,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js","/_next/static/chunks/0an3h71pfhg8p.js"],""] 4:I[15484,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"ThemeToggle"] 5:I[39756,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"default"] 6:I[37457,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"default"] 12:I[68027,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"default",1] :HL["/_next/static/chunks/21jludas8-0yk.css","style"] :HL["/_next/static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2","font",{"crossOrigin":"","type":"font/woff2"}] 0:{"P":null,"c":["","tools","json-validator"],"q":"","i":false,"f":[[["",{"children":["tools",{"children":[["slug","json-validator","d",null],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/21jludas8-0yk.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/07d-w61p1a6it.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/14mrh2-p_w84d.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased","suppressHydrationWarning":true,"children":["$","body",null,{"className":"min-h-full flex flex-col","children":[["$","$L2",null,{"id":"theme-init","strategy":"beforeInteractive","children":"\n(function () {\n try {\n var stored = localStorage.getItem(\"theme\");\n var theme = stored === \"light\" || stored === \"dark\"\n ? stored\n : (window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\");\n document.documentElement.classList.toggle(\"dark\", theme === \"dark\");\n } catch (e) {}\n})();\n"}],["$","header",null,{"className":"border-b border-slate-200 dark:border-slate-800","children":["$","div",null,{"className":"mx-auto flex max-w-6xl flex-wrap items-center justify-between gap-4 px-4 py-4 sm:px-6","children":[["$","$L3",null,{"href":"/","className":"text-lg font-bold text-slate-900 dark:text-slate-100","children":"CodeScript"}],["$","nav",null,{"className":"flex flex-wrap items-center gap-x-5 gap-y-2 text-sm text-slate-600 dark:text-slate-400","children":[[["$","$L3","/tools",{"href":"/tools","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Tools"}],["$","$L3","/cheat-sheets",{"href":"/cheat-sheets","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Cheat Sheets"}],["$","$L3","/interview-questions",{"href":"/interview-questions","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Interview Questions"}],["$","$L3","/snippets",{"href":"/snippets","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Snippets"}],["$","$L3","/api-directory",{"href":"/api-directory","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"API Directory"}],["$","$L3","/roadmaps",{"href":"/roadmaps","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Roadmaps"}]],["$","a",null,{"href":"https://blog.codescript.in","className":"hover:text-indigo-600 dark:hover:text-indigo-400","rel":"noopener","children":"Blog"}],["$","$L4",null,{}]]}]]}]}],["$","main",null,{"className":"flex-1","children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","footer",null,{"className":"mt-16 border-t border-slate-200 dark:border-slate-800","children":["$","div",null,{"className":"mx-auto max-w-6xl px-4 py-10 sm:px-6","children":["$L7","$L8","$L9","$La","$Lb"]}]}],"$Lc"]}]}]]}],{"children":["$Ld",{"children":["$Le",{"children":["$Lf",{},null,false,null]},null,false,"$@10"]},null,false,"$@10"]},null,false,null],"$L11",false]],"m":"$undefined","G":["$12",["$L13"]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"hZXEtJmKBENpHYBRepoaY"} 15:I[97367,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"OutletBoundary"] 16:"$Sreact.suspense" 19:I[97367,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"ViewportBoundary"] 1b:I[97367,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"MetadataBoundary"] 7:["$","p",null,{"className":"text-sm font-semibold text-slate-900 dark:text-slate-100","children":"CodeScript"}] 8:["$","p",null,{"className":"mt-1 text-sm text-slate-600 dark:text-slate-400","children":"Free developer tools that run entirely in your browser."}] 9:["$","div",null,{"className":"mt-8 grid grid-cols-2 gap-6 sm:grid-cols-4","children":[["$","$L3","json",{"href":"/tools#json","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"JSON Tools"}],["$","$L3","jwt",{"href":"/tools#jwt","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"JWT Tools"}],["$","$L3","base64",{"href":"/tools#base64","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Base64 Tools"}],["$","$L3","uuid",{"href":"/tools#uuid","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"UUID Tools"}],["$","$L3","regex",{"href":"/tools#regex","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Regex Tools"}],["$","$L3","sql",{"href":"/tools#sql","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"SQL Tools"}],["$","$L3","timestamp",{"href":"/tools#timestamp","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Timestamp Tools"}],["$","$L3","hash",{"href":"/tools#hash","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Hash Tools"}],["$","$L3","password",{"href":"/tools#password","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Password Tools"}],["$","$L3","qrcode",{"href":"/tools#qrcode","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"QR Code Tools"}],["$","$L3","text",{"href":"/tools#text","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Text Tools"}]]}] a:["$","div",null,{"className":"mt-8 flex flex-wrap gap-x-5 gap-y-2 text-sm text-slate-500 dark:text-slate-500","children":[["$","a",null,{"href":"https://blog.codescript.in","rel":"noopener","children":"Blog"}],["$","$L3",null,{"href":"/cheat-sheets","children":"Cheat Sheets"}],["$","$L3",null,{"href":"/interview-questions","children":"Interview Questions"}],["$","$L3",null,{"href":"/snippets","children":"Snippets"}],["$","$L3",null,{"href":"/api-directory","children":"API Directory"}],["$","$L3",null,{"href":"/roadmaps","children":"Roadmaps"}]]}] b:["$","p",null,{"className":"mt-8 text-xs text-slate-400 dark:text-slate-600","children":["© ",2026," ","CodeScript",". All tools run locally in your browser."]}] c:["$","script",null,{"async":true,"src":"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1325533494418823","crossOrigin":"anonymous"}] d:["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}] e:["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}] f:["$","$1","c",{"children":["$L14",[["$","script","script-0",{"src":"/_next/static/chunks/0an3h71pfhg8p.js","async":true,"nonce":"$undefined"}]],["$","$L15",null,{"children":["$","$16",null,{"name":"Next.MetadataOutlet","children":"$@17"}]}]]}] 18:[] 10:"$W18" 11:["$","$1","h",{"children":[null,["$","$L19",null,{"children":"$L1a"}],["$","div",null,{"hidden":true,"children":["$","$L1b",null,{"children":["$","$16",null,{"name":"Next.Metadata","children":"$L1c"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}] 13:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/21jludas8-0yk.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}] 1d:I[48431,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js","/_next/static/chunks/0an3h71pfhg8p.js"],"ToolRenderer"] 1e:I[4128,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js","/_next/static/chunks/0an3h71pfhg8p.js"],"FaqAccordion"] 14:["$","div",null,{"className":"mx-auto max-w-4xl px-4 py-10 sm:px-6","children":[["$","script",null,{"type":"application/ld+json","dangerouslySetInnerHTML":{"__html":"{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"Why does the error mention a character position instead of a line number?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Browsers only report a raw character offset. This tool converts that offset to a line/column by counting newlines before it.\"}}]}"}}],["$","nav",null,{"className":"mb-4 flex items-center gap-1.5 text-sm text-slate-500 dark:text-slate-400","children":[["$","$L3",null,{"href":"/","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Home"}],["$","span",null,{"children":"/"}],["$","$L3",null,{"href":"/tools","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Tools"}],[["$","span",null,{"children":"/"}],["$","span",null,{"children":"JSON Tools"}]]]}],["$","h1",null,{"className":"text-2xl font-bold text-slate-900 sm:text-3xl dark:text-slate-100","children":"JSON Validator"}],["$","p",null,{"className":"mt-2 text-slate-600 dark:text-slate-400","children":"Check whether JSON is syntactically valid, with precise error locations."}],["$","div",null,{"className":"mt-6","children":["$","$L1d",null,{"componentKey":"json-validator"}]}],["$","section",null,{"className":"mt-12 space-y-3","children":[["$","h2",null,{"className":"text-lg font-semibold text-slate-900 dark:text-slate-100","children":"What it does"}],["$","p",null,{"className":"text-slate-600 dark:text-slate-400","children":"The JSON Validator parses your input and reports whether it is valid JSON. When it isn't, it converts the parser's error position into a line and column number so you can find and fix the problem quickly."}]]}],["$","section",null,{"className":"mt-10 space-y-3","children":[["$","h2",null,{"className":"text-lg font-semibold text-slate-900 dark:text-slate-100","children":"Common errors"}],["$","ul",null,{"className":"space-y-3","children":[["$","li","Comments in JSON",{"children":[["$","p",null,{"className":"font-medium text-slate-800 dark:text-slate-200","children":"Comments in JSON"}],["$","p",null,{"className":"text-sm text-slate-600 dark:text-slate-400","children":"JSON has no comment syntax — // and /* */ are not valid and will cause a parse error."}]]}],["$","li","NaN / undefined / Infinity",{"children":[["$","p",null,{"className":"font-medium text-slate-800 dark:text-slate-200","children":"NaN / undefined / Infinity"}],["$","p",null,{"className":"text-sm text-slate-600 dark:text-slate-400","children":"These JavaScript values are not valid JSON literals."}]]}]]}]]}],"$undefined",["$","section",null,{"className":"mt-10 space-y-3","children":[["$","h2",null,{"className":"text-lg font-semibold text-slate-900 dark:text-slate-100","children":"FAQ"}],["$","$L1e",null,{"faqs":[{"question":"Why does the error mention a character position instead of a line number?","answer":"Browsers only report a raw character offset. This tool converts that offset to a line/column by counting newlines before it."}]}]]}],["$","section",null,{"className":"mt-10 space-y-3","children":[["$","h2",null,{"className":"text-lg font-semibold text-slate-900 dark:text-slate-100","children":"Related tools"}],["$","div",null,{"className":"grid grid-cols-1 gap-3 sm:grid-cols-2","children":[["$","$L3","json-formatter",{"href":"/tools/json-formatter","className":"rounded-lg border border-slate-200 p-4 transition-colors hover:border-indigo-300 hover:bg-indigo-50/50 dark:border-slate-800 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/30","children":[["$","p",null,{"className":"font-medium text-slate-900 dark:text-slate-100","children":"JSON Formatter"}],["$","p",null,{"className":"mt-1 text-sm text-slate-600 dark:text-slate-400","children":"Beautify and indent messy or minified JSON."}]]}],["$","$L3","json-minifier",{"href":"/tools/json-minifier","className":"rounded-lg border border-slate-200 p-4 transition-colors hover:border-indigo-300 hover:bg-indigo-50/50 dark:border-slate-800 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/30","children":["$L1f","$L20"]}],"$L21","$L22"]}]]}],false]}] 1f:["$","p",null,{"className":"font-medium text-slate-900 dark:text-slate-100","children":"JSON Minifier"}] 20:["$","p",null,{"className":"mt-1 text-sm text-slate-600 dark:text-slate-400","children":"Strip whitespace from JSON to reduce payload size."}] 21:["$","$L3","json-compare",{"href":"/tools/json-compare","className":"rounded-lg border border-slate-200 p-4 transition-colors hover:border-indigo-300 hover:bg-indigo-50/50 dark:border-slate-800 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/30","children":[["$","p",null,{"className":"font-medium text-slate-900 dark:text-slate-100","children":"JSON Compare"}],["$","p",null,{"className":"mt-1 text-sm text-slate-600 dark:text-slate-400","children":"Diff two JSON documents and see what changed."}]]}] 22:["$","$L3","json-yaml-converter",{"href":"/tools/json-yaml-converter","className":"rounded-lg border border-slate-200 p-4 transition-colors hover:border-indigo-300 hover:bg-indigo-50/50 dark:border-slate-800 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/30","children":[["$","p",null,{"className":"font-medium text-slate-900 dark:text-slate-100","children":"JSON to YAML Converter"}],["$","p",null,{"className":"mt-1 text-sm text-slate-600 dark:text-slate-400","children":"Convert between JSON and YAML formats."}]]}] 1a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] 23:I[27201,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"IconMark"] 17:null 1c:[["$","title","0",{"children":"JSON Validator – Check JSON Syntax Online for Free | CodeScript"}],["$","meta","1",{"name":"description","content":"Validate JSON syntax instantly. Get a precise error message with line and column number when your JSON is invalid. 100% client-side, nothing is uploaded."}],["$","meta","2",{"name":"keywords","content":"json validator,validate json,json syntax checker"}],["$","link","3",{"rel":"canonical","href":"https://codescript.in/tools/json-validator"}],["$","meta","4",{"property":"og:title","content":"JSON Validator – Check JSON Syntax Online for Free"}],["$","meta","5",{"property":"og:description","content":"Validate JSON syntax instantly. Get a precise error message with line and column number when your JSON is invalid. 100% client-side, nothing is uploaded."}],["$","meta","6",{"property":"og:url","content":"https://codescript.in/tools/json-validator"}],["$","meta","7",{"property":"og:site_name","content":"CodeScript"}],["$","meta","8",{"property":"og:type","content":"website"}],["$","meta","9",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","10",{"name":"twitter:title","content":"JSON Validator – Check JSON Syntax Online for Free"}],["$","meta","11",{"name":"twitter:description","content":"Validate JSON syntax instantly. Get a precise error message with line and column number when your JSON is invalid. 100% client-side, nothing is uploaded."}],["$","link","12",{"rel":"icon","href":"/favicon.ico?favicon.01zq6kj0bxv_0.ico","sizes":"48x48","type":"image/x-icon"}],["$","$L23","13",{}]]