1:"$Sreact.fragment" 2:I[1402,["619","static/chunks/619-ba102abea3e3d0e4.js","952","static/chunks/952-4eb143c2e0fe3db4.js","177","static/chunks/app/layout-e83181ce6c1ed0b9.js"],""] 3:I[8891,["619","static/chunks/619-ba102abea3e3d0e4.js","952","static/chunks/952-4eb143c2e0fe3db4.js","177","static/chunks/app/layout-e83181ce6c1ed0b9.js"],"default"] 4:I[9766,[],""] 5:I[8924,[],""] 6:I[2619,["619","static/chunks/619-ba102abea3e3d0e4.js","364","static/chunks/app/resources/%5Bslug%5D/page-433884b4dc181061.js"],""] 13:I[7150,[],""] :HL["/_next/static/css/62c4fedfac335af9.css","style"] 0:{"P":null,"b":"TI7nt16mKKtxQtr-wkJZ3","p":"","c":["","resources","json-interview-questions"],"i":false,"f":[[["",{"children":["resources",{"children":[["slug","json-interview-questions","d"],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/62c4fedfac335af9.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":[["$","$L2",null,{"id":"ga4-consent-default","strategy":"beforeInteractive","children":"window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('consent','default',{analytics_storage:'denied',ad_storage:'denied',ad_user_data:'denied',ad_personalization:'denied',wait_for_update:500});"}],["$","$L2",null,{"src":"https://www.googletagmanager.com/gtag/js?id=G-TGYHX8MW7F","strategy":"afterInteractive"}],["$","$L2",null,{"id":"ga4-config","strategy":"afterInteractive","children":"window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','G-TGYHX8MW7F');"}],["$","$L2",null,{"strategy":"afterInteractive","async":true,"src":"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9789622687009991","crossOrigin":"anonymous"}],["$","$L3",null,{}],["$","main",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","section",null,{"className":"shell notfound","children":[["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":48,"height":48,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-braces","children":[["$","path","ezmyqa",{"d":"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1"}],["$","path","e1hn23",{"d":"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"}],"$undefined"]}],["$","h1",null,{"children":"404 โ€” This JSON path doesn't exist."}],["$","p",null,{"children":"The tool may have moved, or the address may contain a typo."}],["$","$L6",null,{"href":"/","className":"button primary","children":[["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":18,"height":18,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-house","children":[["$","path","5wwlr5",{"d":"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["$","path","1d0kgt",{"d":"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}],"$undefined"]}]," Return to JSON Formatter"]}],["$","$L6",null,{"href":"/json-tree-viewer","className":"button ghost","children":[["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":18,"height":18,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-search","children":[["$","circle","4ej97u",{"cx":"11","cy":"11","r":"8"}],["$","path","1qie3q",{"d":"m21 21-4.3-4.3"}],"$undefined"]}]," Explore Tree Viewer"]}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","footer",null,{"className":"footer","children":[["$","div",null,{"className":"shell footer-grid footer-grid-v4","children":[["$","div",null,{"className":"footer-about","children":[["$","div",null,{"className":"footer-identity","children":[["$","img",null,{"src":"/logo.svg","alt":"","width":"48","height":"48"}],["$","strong",null,{"children":"JSONFormatter"}]]}],["$","p",null,{"children":"by Clearfunda ยท JSON formatting, testing and developer tools."}]]}],["$","nav",null,{"aria-label":"Information","children":[["$","strong",null,{"children":"INFORMATION"}],["$","$L6",null,{"href":"/about","children":"About Us"}],["$","$L6",null,{"href":"/contact","children":"Contact Us"}],["$","$L6",null,{"href":"/terms-and-conditions","children":"Terms & Conditions"}],["$","$L6",null,{"href":"/privacy","children":"Privacy Policy"}]]}],["$","nav",null,{"aria-label":"JSON tools","children":[["$","strong",null,{"children":"JSON TOOLS"}],[["$","$L6","/",{"href":"/","children":"JSON Formatter"}],["$","$L6","/json-tree-viewer",{"href":"/json-tree-viewer","children":"JSON Tree Viewer"}],["$","$L6","/json-compare",{"href":"/json-compare","children":"JSON Compare"}],"$L7","$L8","$L9"],"$La","$Lb"]}],"$Lc","$Ld"]}],"$Le"]}]]}]}]]}],{"children":["resources","$Lf",{"children":[["slug","json-interview-questions","d"],"$L10",{"children":["__PAGE__","$L11",{},null,false]},null,false]},null,false]},null,false],"$L12",false]],"m":"$undefined","G":["$13",[]],"s":false,"S":true} 15:I[4431,[],"OutletBoundary"] 17:I[5278,[],"AsyncMetadataOutlet"] 19:I[4431,[],"ViewportBoundary"] 1b:I[4431,[],"MetadataBoundary"] 1c:"$Sreact.suspense" 7:["$","$L6","/json-data-generator",{"href":"/json-data-generator","children":"JSON Data Generator"}] 8:["$","$L6","/json-redactor",{"href":"/json-redactor","children":"Sensitive Data Redactor"}] 9:["$","$L6","/json-schema-validator",{"href":"/json-schema-validator","children":"JSON Schema Validator"}] a:["$","$L6",null,{"href":"/api-tester","children":"REST API Tester"}] b:["$","$L6",null,{"href":"/resources","children":"Learn JSON"}] c:["$","nav",null,{"aria-label":"Other Clearfunda tools","children":[["$","strong",null,{"children":"OTHER CLEARFUNDA TOOLS"}],["$","a",null,{"href":"https://unitconverter.clearfunda.com/","target":"_blank","rel":"noopener noreferrer","children":"UnitConverter"}],["$","a",null,{"href":"https://text-compare.clearfunda.com/","target":"_blank","rel":"noopener noreferrer","children":"Text Compare"}],["$","a",null,{"href":"https://favicon-generator.clearfunda.com/","target":"_blank","rel":"noopener noreferrer","children":"Favicon Generator"}],["$","a",null,{"href":"https://password-generator.clearfunda.com/","target":"_blank","rel":"noopener noreferrer","children":"Password Generator"}],["$","a",null,{"href":"https://notepad.clearfunda.com/","target":"_blank","rel":"noopener noreferrer","children":"NotePad"}]]}] d:["$","div",null,{"className":"footer-social","children":[["$","strong",null,{"children":"FOLLOW US"}],["$","div",null,{"className":"socials","children":[["$","a",null,{"href":"https://x.com/clearfunda1","aria-label":"X","target":"_blank","rel":"noopener noreferrer","children":"๐•"}],["$","a",null,{"href":"https://www.linkedin.com/company/clearfunda/","aria-label":"LinkedIn","target":"_blank","rel":"noopener noreferrer","children":["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":19,"height":19,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-linkedin","children":[["$","path","c2jq9f",{"d":"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}],["$","rect","mk3on5",{"width":"4","height":"12","x":"2","y":"9"}],["$","circle","bt5ra8",{"cx":"4","cy":"4","r":"2"}],"$undefined"]}]}],["$","a",null,{"href":"https://www.facebook.com/clearfundaofficial","aria-label":"Facebook","target":"_blank","rel":"noopener noreferrer","children":["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":19,"height":19,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-facebook","children":[["$","path","1jg4f8",{"d":"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}],"$undefined"]}]}]]}]]}] e:["$","div",null,{"className":"shell footer-bottom footer-bottom-v4","children":["ยฉ ",2026," ClearFunda. All rights reserved."]}] f:["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}] 10:["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}] 11:["$","$1","c",{"children":["$L14",null,["$","$L15",null,{"children":["$L16",["$","$L17",null,{"promise":"$@18"}]]}]]}] 12:["$","$1","h",{"children":[null,[["$","$L19",null,{"children":"$L1a"}],null],["$","$L1b",null,{"children":["$","div",null,{"hidden":true,"children":["$","$1c",null,{"fallback":null,"children":"$L1d"}]}]}]]}] 14:["$","main",null,{"className":"shell resource-article","children":[["$","$L6",null,{"href":"/resources","children":"โ† All learning resources"}],["$","h1",null,{"children":"JSON Interview Questions for Developers and QA Testers"}],["$","p",null,{"className":"resource-lead","children":"Essential and advanced JSON interview questions with practical examples."}],[["$","section","What is JSON?",{"id":"section-1","children":[["$","h2",null,{"children":"What is JSON?"}],["$","p",null,{"children":"JSON means JavaScript Object Notation. It is a language-independent text format for exchanging structured data between systems and APIs."}]]}],["$","section","What is JSONP?",{"id":"section-2","children":[["$","h2",null,{"children":"What is JSONP?"}],["$","p",null,{"children":"JSONP is a legacy technique that loads data through a script tag, using a callback. It is not JSON itself, and it creates security risks with untrusted endpoints. Modern APIs generally use CORS instead."}]]}],["$","section","What is the JSON file extension?",{"id":"section-3","children":[["$","h2",null,{"children":"What is the JSON file extension?"}],["$","p",null,{"children":"JSON files normally use the .json extension. The usual media type is application/json."}]]}],["$","section","What is JSON Schema?",{"id":"section-4","children":[["$","h2",null,{"children":"What is JSON Schema?"}],["$","p",null,{"children":"JSON Schema is a vocabulary for describing and validating the expected shape and constraints of JSON values."}]]}],["$","section","What is the basic structure of JSON?",{"id":"section-5","children":[["$","h2",null,{"children":"What is the basic structure of JSON?"}],["$","p",null,{"children":"A JSON document may be an object, array, string, number, boolean or null. Objects use curly braces with string keys; arrays use square brackets."}]]}],["$","section","What data types does JSON support?",{"id":"section-6","children":[["$","h2",null,{"children":"What data types does JSON support?"}],["$","p",null,{"children":"Six data types: object, array, string, number, boolean, and null. JSON has no separate date, undefined, bigint, or function type."}]]}],["$","section","How do you convert a JSON string into an object?",{"id":"section-7","children":[["$","h2",null,{"children":"How do you convert a JSON string into an object?"}],["$","p",null,{"children":"In JavaScript use JSON.parse(text); in Python use json.loads(text). Handle invalid syntax rather than assuming parsing always succeeds."}]]}],["$","section","How do you turn an object into a JSON string?",{"id":"section-8","children":[["$","h2",null,{"children":"How do you turn an object into a JSON string?"}],["$","p",null,{"children":"In JavaScript use JSON.stringify(value); in Python use json.dumps(value). Some language-specific values may require conversion."}]]}],["$","section","How should JSON parsing errors be handled?",{"id":"section-9","children":[["$","h2",null,{"children":"How should JSON parsing errors be handled?"}],["$","p",null,{"children":"Catch parsing exceptions, report a line and column when available, and reject invalid input rather than silently accepting it."}]]}],["$","section","What are the differences between JSON and XML?",{"id":"section-10","children":[["$","h2",null,{"children":"What are the differences between JSON and XML?"}],["$","p",null,{"children":"JSON uses objects and arrays with a compact syntax. XML uses elements, attributes, and namespaces. Both are used for structured data; each has different tooling and schema ecosystems."}]]}],["$","section","What is the MIME type of JSON?",{"id":"section-11","children":[["$","h2",null,{"children":"What is the MIME type of JSON?"}],["$","p",null,{"children":"The standard media type is application/json. It lets clients identify how to interpret the body; it does not guarantee that the body is valid JSON."}]]}],["$","section","What is a JSON Web Token (JWT)?",{"id":"section-12","children":["$L1e","$L1f"]}],"$L20","$L21","$L22","$L23","$L24","$L25","$L26","$L27","$L28","$L29","$L2a","$L2b","$L2c"],"$L2d","$L2e"]}] 2f:I[9205,["619","static/chunks/619-ba102abea3e3d0e4.js","364","static/chunks/app/resources/%5Bslug%5D/page-433884b4dc181061.js"],"default"] 1e:["$","h2",null,{"children":"What is a JSON Web Token (JWT)?"}] 1f:["$","p",null,{"children":"A JWT is a compact token with three base64url-encoded segments: header, payload and signature (for a signed JWS). Decoding a JWT does not verify its signature or claims."}] 20:["$","section","What are common issues with JSON?",{"id":"section-13","children":[["$","h2",null,{"children":"What are common issues with JSON?"}],["$","p",null,{"children":"Invalid escaping, duplicate keys, excessive nesting, oversized payloads, numeric precision differences, and confusing missing values with null."}]]}] 21:["$","section","What is the difference between null and a missing key?",{"id":"section-14","children":[["$","h2",null,{"children":"What is the difference between null and a missing key?"}],["$","p",null,{"children":"null is an explicitly present value. A missing key does not exist. This difference matters for API contracts, PATCH behavior and JSON Schema required properties."}]]}] 22:["$","section","Does JSON object key order matter?",{"id":"section-15","children":[["$","h2",null,{"children":"Does JSON object key order matter?"}],["$","p",null,{"children":"JSON objects are conceptually unordered. Arrays are ordered. Applications should not rely on key order for structural equality."}]]}] 23:["$","section","Why are comments and trailing commas invalid?",{"id":"section-16","children":[["$","h2",null,{"children":"Why are comments and trailing commas invalid?"}],["$","p",null,{"children":"The JSON grammar does not permit JavaScript-style comments or trailing commas. JSONC and JSON5 are different formats/extensions."}]]}] 24:["$","section","How do you represent dates in JSON?",{"id":"section-17","children":[["$","h2",null,{"children":"How do you represent dates in JSON?"}],["$","p",null,{"children":"Dates are usually serialized as strings using a documented format, often ISO 8601, because JSON has no native date type."}]]}] 25:["$","section","How can a REST API validate JSON?",{"id":"section-18","children":[["$","h2",null,{"children":"How can a REST API validate JSON?"}],["$","p",null,{"children":"Check syntax, Content-Type, schema constraints, required fields, types, authorization and business rules. A syntactically valid document can still be invalid for an API."}]]}] 26:["$","section","What is the difference between JSON and JSON Lines?",{"id":"section-19","children":[["$","h2",null,{"children":"What is the difference between JSON and JSON Lines?"}],["$","p",null,{"children":"Ordinary JSON is one JSON value. JSON Lines (JSONL/NDJSON) stores one JSON value per line and is useful for streaming logs or exports."}]]}] 27:["$","section","How do you compare two JSON API responses?",{"id":"section-20","children":[["$","h2",null,{"children":"How do you compare two JSON API responses?"}],["$","p",null,{"children":"Parse both documents and compare their structures, paths and types. Decide explicitly whether array order and numeric tolerances matter."}]]}] 28:["$","section","What is prototype pollution in JSON handling?",{"id":"section-21","children":[["$","h2",null,{"children":"What is prototype pollution in JSON handling?"}],["$","p",null,{"children":"Unsafe merging of attacker-controlled property keys into JavaScript objects may alter object prototypes. Use safe merge code and reject hazardous keys where needed."}]]}] 29:["$","section","What happens to large integers in JavaScript JSON.parse?",{"id":"section-22","children":[["$","h2",null,{"children":"What happens to large integers in JavaScript JSON.parse?"}],["$","p",null,{"children":"JSON numbers become JavaScript Number values. Integers above Number.MAX_SAFE_INTEGER can lose precision, so use string encodings or precision-preserving parsers where required."}]]}] 2a:["$","section","How do you prevent leaking secrets in JSON logs?",{"id":"section-23","children":[["$","h2",null,{"children":"How do you prevent leaking secrets in JSON logs?"}],["$","p",null,{"children":"Minimize recorded fields, redact credential keys, review output before sharing, and never assume automated masking detects every sensitive value."}]]}] 2b:["$","section","What is schema drift?",{"id":"section-24","children":[["$","h2",null,{"children":"What is schema drift?"}],["$","p",null,{"children":"Schema drift occurs when fields, types, requiredness or nesting change between payload versions or environments. Compare multiple samples and validate against an explicit contract."}]]}] 2c:["$","section","When should you use JSON.stringify with indentation?",{"id":"section-25","children":[["$","h2",null,{"children":"When should you use JSON.stringify with indentation?"}],["$","p",null,{"children":"Use JSON.stringify(value, null, 2) for readable output and JSON.stringify(value) for a compact representation. Formatting does not change the data model."}]]}] 2d:["$","$L2f",null,{"slug":"json-interview-questions"}] 2e:["$","div",null,{"className":"panel-note","children":["Practice these concepts using the ",["$","$L6",null,{"href":"/","children":"JSON Formatter"}],", ",["$","$L6",null,{"href":"/json-schema-validator","children":"Schema Validator"}]," and ",["$","$L6",null,{"href":"/api-tester","children":"REST API Tester"}],"."]}] 1a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#152c46"}]] 16:null 30:I[622,[],"IconMark"] 18:{"metadata":[["$","title","0",{"children":"JSON Interview Questions for Developers and QA Testers | JSONFormatter by Clearfunda"}],["$","meta","1",{"name":"description","content":"Essential and advanced JSON interview questions with practical examples."}],["$","meta","2",{"name":"application-name","content":"JSONFormatter by Clearfunda"}],["$","meta","3",{"name":"creator","content":"Clearfunda"}],["$","meta","4",{"name":"publisher","content":"Clearfunda"}],["$","meta","5",{"name":"robots","content":"index, follow"}],["$","meta","6",{"name":"category","content":"developer tools"}],["$","meta","7",{"name":"google-adsense-account","content":"ca-pub-9789622687009991"}],["$","link","8",{"rel":"canonical","href":"https://jsonformatter.clearfunda.com/resources/json-interview-questions"}],["$","meta","9",{"property":"og:title","content":"JSONFormatter by Clearfunda"}],["$","meta","10",{"property":"og:description","content":"Format, inspect, validate, compare and test JSON privately in your browser."}],["$","meta","11",{"property":"og:url","content":"https://jsonformatter.clearfunda.com"}],["$","meta","12",{"property":"og:site_name","content":"JSONFormatter by Clearfunda"}],["$","meta","13",{"property":"og:image","content":"https://jsonformatter.clearfunda.com/og-jsonformatter.png"}],["$","meta","14",{"property":"og:image:width","content":"1200"}],["$","meta","15",{"property":"og:image:height","content":"630"}],["$","meta","16",{"property":"og:image:alt","content":"JSONFormatter by Clearfunda developer workspace"}],["$","meta","17",{"property":"og:type","content":"website"}],["$","meta","18",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","19",{"name":"twitter:title","content":"JSONFormatter by Clearfunda"}],["$","meta","20",{"name":"twitter:description","content":"Modern JSON development and testing workspace."}],["$","meta","21",{"name":"twitter:image","content":"https://jsonformatter.clearfunda.com/og-jsonformatter.png"}],["$","link","22",{"rel":"icon","href":"/favicon.ico","sizes":"any"}],["$","link","23",{"rel":"icon","href":"/icon.svg","type":"image/svg+xml"}],["$","link","24",{"rel":"apple-touch-icon","href":"/apple-touch-icon.png"}],["$","$L30","25",{}]],"error":null,"digest":"$undefined"} 1d:"$18:metadata"