[{"data":1,"prerenderedAt":73},["ShallowReactive",2],{"tool-content-en-json-to-typescript":3},{"id":4,"title":5,"body":6,"description":64,"extension":65,"locale":66,"meta":67,"navigation":68,"path":69,"seo":70,"stem":71,"toolId":21,"__hash__":72},"tools\u002Ftools\u002Fen\u002Fjson-to-typescript.md","JSON \u002F TypeScript Converter",{"type":7,"value":8,"toc":55},"minimark",[9,14,18,23,35,42,46,49,52],[10,11,13],"h2",{"id":12},"json-and-typescript-conversion","JSON and TypeScript conversion",[15,16,17],"p",{},"Convert between JSON and TypeScript in both directions. Generate TypeScript interfaces or type aliases from JSON data, or convert TypeScript declarations back to JSON.",[19,20,22],"h3",{"id":21},"json-to-typescript","JSON to TypeScript",[15,24,25,26,30,31,34],{},"Paste a JSON object to generate TypeScript declarations with nested object types, arrays, quoted keys, and inferred primitive types. Choose ",[27,28,29],"code",{},"interface"," for extendable object declarations or ",[27,32,33],{},"type"," for type aliases.",[15,36,37,38,41],{},"Mixed arrays become union arrays, empty arrays use ",[27,39,40],{},"unknown[]",", and identical object shapes are reused.",[19,43,45],{"id":44},"typescript-to-json","TypeScript to JSON",[15,47,48],{},"Paste TypeScript interface or type declarations to generate sample JSON data. The converter resolves nested interfaces, inline object types, array properties, union types (uses the first type), and type aliases.",[15,50,51],{},"Both directions support nested structures and preserve the data model relationships.",[15,53,54],{},"All processing happens locally in your browser. Your data is never uploaded.",{"title":56,"searchDepth":57,"depth":57,"links":58},"",2,[59],{"id":12,"depth":57,"text":13,"children":60},[61,63],{"id":21,"depth":62,"text":22},3,{"id":44,"depth":62,"text":45},"Convert between JSON and TypeScript data formats with interface\u002Ftype generation and type inference.","md","en",{},true,"\u002Ftools\u002Fen\u002Fjson-to-typescript",{"title":5,"description":64},"tools\u002Fen\u002Fjson-to-typescript","jg1kz_5-SJP2Zxi1i_tUengLxNb4eAEEWEj7z1WIrh0",1792391418895]