[{"data":1,"prerenderedAt":590},["ShallowReactive",2],{"page-\u002Fcore\u002Fapi\u002Fvariables\u002FconvertProfileFromJSON":3,"navigation":203},{"collection":4,"page":5},"docs_en",{"id":6,"title":7,"body":8,"description":193,"extension":194,"meta":195,"navigation":197,"path":198,"rawbody":199,"seo":200,"stem":201,"__hash__":202},"docs_en\u002Fcore\u002Fapi\u002Fvariables\u002FconvertProfileFromJSON.md","~~Variable: convertProfileFromJSON~~",{"type":9,"value":10,"toc":181},"minimark",[11,46,57,60,113,118,122,127,130,134,142,151,155,161,164,171,175],[12,13,14],"blockquote",{},[15,16,17,21,22,26,27,30,31,38,39,42,43],"p",{},[18,19,20],"code",{},"const"," ",[23,24,25],"strong",{},"convertProfileFromJSON",": (",[18,28,29],{},"jsonString",") => ",[32,33,35],"a",{"href":34},"\u002Fcore\u002Fapi\u002Ftype-aliases\u002FWell",[18,36,37],{},"Well"," | ",[18,40,41],{},"null"," = ",[18,44,45],{},"deserializeWell",[15,47,48,49,53,54,56],{},"Parses a JSON string produced by ",[32,50,52],{"href":51},"\u002Fcore\u002Fapi\u002Ffunctions\u002FserializeWell","serializeWell"," (or older legacy\nformats) and returns a normalized ",[32,55,37],{"href":34}," object.",[15,58,59],{},"Handles:",[61,62,63,67,78,89,100],"ul",{},[64,65,66],"li",{},"Versioned format v1 and v2",[64,68,69,70,73,74,77],{},"Legacy format with ",[18,71,72],{},"constructive"," \u002F ",[18,75,76],{},"geologic"," sub-objects",[64,79,80,81,84,85,88],{},"Legacy ",[18,82,83],{},"diam_pol"," inch diameters → ",[18,86,87],{},"diameter"," mm conversion",[64,90,91,92,95,96,99],{},"Typo ",[18,93,94],{},"bole_hole"," → ",[18,97,98],{},"bore_hole"," compatibility",[64,101,102,103,106,107,106,110],{},"v1→v2 normalizations: ",[18,104,105],{},"fgdc_texture",", ",[18,108,109],{},"screen_slot_mm",[18,111,112],{},"lat\u002Flng\u002Felevation → location",[114,115,117],"h2",{"id":116},"parameters","Parameters",[119,120,29],"h3",{"id":121},"jsonstring",[15,123,124],{},[18,125,126],{},"string",[15,128,129],{},"Raw JSON string to parse.",[114,131,133],{"id":132},"returns","Returns",[15,135,136,38,140],{},[32,137,138],{"href":34},[18,139,37],{},[18,141,41],{},[15,143,144,145,147,148,150],{},"A normalized ",[32,146,37],{"href":34},", or ",[18,149,41],{}," if the parsed data is empty.",[114,152,154],{"id":153},"throws","Throws",[15,156,157,158,160],{},"If ",[18,159,29],{}," is not valid JSON.",[114,162,154],{"id":163},"throws-1",[15,165,166,167,170],{},"If the ",[18,168,169],{},"version"," field is present but not supported.",[114,172,174],{"id":173},"deprecated","Deprecated",[15,176,177,178],{},"Use ",[32,179,45],{"href":180},"\u002Fcore\u002Fapi\u002Ffunctions\u002FdeserializeWell",{"title":182,"searchDepth":183,"depth":183,"links":184},"",2,[185,189,190,191,192],{"id":116,"depth":183,"text":117,"children":186},[187],{"id":121,"depth":188,"text":29},3,{"id":132,"depth":183,"text":133},{"id":153,"depth":183,"text":154},{"id":163,"depth":183,"text":154},{"id":173,"depth":183,"text":174},"Parses a JSON string produced by serializeWell (or older legacy formats) and returns a normalized Well object.","md",{"generated":196},true,false,"\u002Fcore\u002Fapi\u002Fvariables\u002FconvertProfileFromJSON","---\npath: \"\u002Fcore\u002Fapi\u002Fvariables\u002FconvertProfileFromJSON\"\ntitle: \"~~Variable: convertProfileFromJSON~~\"\ndescription: \"Parses a JSON string produced by serializeWell (or older legacy formats) and returns a normalized Well object.\"\ngenerated: true\nnavigation: false\n---\n\n> `const` **convertProfileFromJSON**: (`jsonString`) => [`Well`](\u002Fcore\u002Fapi\u002Ftype-aliases\u002FWell) \\| `null` = `deserializeWell`\n\nParses a JSON string produced by [serializeWell](\u002Fcore\u002Fapi\u002Ffunctions\u002FserializeWell) (or older legacy\nformats) and returns a normalized [Well](\u002Fcore\u002Fapi\u002Ftype-aliases\u002FWell) object.\n\nHandles:\n- Versioned format v1 and v2\n- Legacy format with `constructive` \u002F `geologic` sub-objects\n- Legacy `diam_pol` inch diameters → `diameter` mm conversion\n- Typo `bole_hole` → `bore_hole` compatibility\n- v1→v2 normalizations: `fgdc_texture`, `screen_slot_mm`, `lat\u002Flng\u002Felevation → location`\n\n## Parameters\n\n### jsonString\n\n`string`\n\nRaw JSON string to parse.\n\n## Returns\n\n[`Well`](\u002Fcore\u002Fapi\u002Ftype-aliases\u002FWell) \\| `null`\n\nA normalized [Well](\u002Fcore\u002Fapi\u002Ftype-aliases\u002FWell), or `null` if the parsed data is empty.\n\n## Throws\n\nIf `jsonString` is not valid JSON.\n\n## Throws\n\nIf the `version` field is present but not supported.\n\n## Deprecated\n\nUse [deserializeWell](\u002Fcore\u002Fapi\u002Ffunctions\u002FdeserializeWell)\n",{"title":7,"description":193},"core\u002Fapi\u002Fvariables\u002FconvertProfileFromJSON","mPIekMjWJtAc7S046YAgOFTsEqOYEgRhV3ubx7E-VKA",{"docs_en":204,"spec":521,"changelogs":571},[205,225,244,299,409,463],{"title":206,"path":207,"stem":208,"children":209},"Ai","\u002Fai","ai",[210,213,217,221],{"title":211,"path":207,"stem":212},"Introduction","ai\u002Findex",{"title":214,"path":215,"stem":216},"Converting reports with an assistant","\u002Fai\u002Fconversion-skill","ai\u002Fconversion-skill",{"title":218,"path":219,"stem":220},"llms.txt and Markdown pages","\u002Fai\u002Fllms","ai\u002Fllms",{"title":222,"path":223,"stem":224},"MCP server","\u002Fai\u002Fmcp","ai\u002Fmcp",{"title":226,"path":227,"stem":228,"children":229},"Contributing","\u002Fcontributing","contributing",[230,232,236,240],{"title":211,"path":227,"stem":231},"contributing\u002Findex",{"title":233,"path":234,"stem":235},"Writing docs","\u002Fcontributing\u002Fwriting-docs","contributing\u002F1.writing-docs",{"title":237,"path":238,"stem":239},"Update rules","\u002Fcontributing\u002Fupdate-rules","contributing\u002F2.update-rules",{"title":241,"path":242,"stem":243},"Content components","\u002Fcontributing\u002Fcomponents","contributing\u002Fcomponents",{"title":245,"path":246,"stem":247,"children":248},"Core","\u002Fcore","core",[249,251,264,293],{"title":211,"path":246,"stem":250},"core\u002Findex",{"title":252,"path":253,"stem":254,"children":255,"page":197},"Getting Started","\u002Fcore\u002Fgetting-started","core\u002F1.getting-started",[256,260],{"title":257,"path":258,"stem":259},"Installation","\u002Fcore\u002Fgetting-started\u002Finstallation","core\u002F1.getting-started\u002F1.installation",{"title":261,"path":262,"stem":263},"First use","\u002Fcore\u002Fgetting-started\u002Ffirst-use","core\u002F1.getting-started\u002F2.first-use",{"title":265,"path":266,"stem":267,"children":268,"page":197},"Guides","\u002Fcore\u002Fguides","core\u002F2.guides",[269,273,277,281,285,289],{"title":270,"path":271,"stem":272},"Parsing and validating","\u002Fcore\u002Fguides\u002Fparsing-and-validating","core\u002F2.guides\u002F1.parsing-and-validating",{"title":274,"path":275,"stem":276},"Serializing and sharing","\u002Fcore\u002Fguides\u002Fserializing-and-sharing","core\u002F2.guides\u002F2.serializing-and-sharing",{"title":278,"path":279,"stem":280},"Unit conversion","\u002Fcore\u002Fguides\u002Funit-conversion","core\u002F2.guides\u002F3.unit-conversion",{"title":282,"path":283,"stem":284},"Vocabularies and textures","\u002Fcore\u002Fguides\u002Fvocabularies-and-textures","core\u002F2.guides\u002F4.vocabularies-and-textures",{"title":286,"path":287,"stem":288},"Water quality vocabulary","\u002Fcore\u002Fguides\u002Fwater-quality-vocabulary","core\u002F2.guides\u002F5.water-quality-vocabulary",{"title":290,"path":291,"stem":292},"Versions and time zones","\u002Fcore\u002Fguides\u002Fversions-and-time-zones","core\u002F2.guides\u002F6.versions-and-time-zones",{"title":294,"path":295,"stem":296,"children":297},"API reference","\u002Fcore\u002Fapi","core\u002Fapi\u002Findex",[298],{"title":294,"path":295,"stem":296},{"title":300,"path":301,"stem":302,"children":303},"Format","\u002Fformat","format",[304,306,326,355,379,399,405],{"title":211,"path":301,"stem":305},"format\u002Findex",{"title":252,"path":307,"stem":308,"children":309,"page":197},"\u002Fformat\u002Fgetting-started","format\u002F1.getting-started",[310,314,318,322],{"title":311,"path":312,"stem":313},"What is .well?","\u002Fformat\u002Fgetting-started\u002Fwhat-is-well","format\u002F1.getting-started\u002F1.what-is-well",{"title":315,"path":316,"stem":317},"For geologists","\u002Fformat\u002Fgetting-started\u002Ffor-geologists","format\u002F1.getting-started\u002F2.for-geologists",{"title":319,"path":320,"stem":321},"For developers","\u002Fformat\u002Fgetting-started\u002Ffor-developers","format\u002F1.getting-started\u002F3.for-developers",{"title":323,"path":324,"stem":325},"Your first .well file","\u002Fformat\u002Fgetting-started\u002Ffirst-well-file","format\u002F1.getting-started\u002F4.first-well-file",{"title":327,"path":328,"stem":329,"children":330,"page":197},"Concepts","\u002Fformat\u002Fconcepts","format\u002F2.concepts",[331,335,339,343,347,351],{"title":332,"path":333,"stem":334},"Depths and intervals","\u002Fformat\u002Fconcepts\u002Fdepths-and-intervals","format\u002F2.concepts\u002F1.depths-and-intervals",{"title":336,"path":337,"stem":338},"Units and precision","\u002Fformat\u002Fconcepts\u002Funits-and-precision","format\u002F2.concepts\u002F2.units-and-precision",{"title":340,"path":341,"stem":342},"Vocabularies","\u002Fformat\u002Fconcepts\u002Fvocabularies","format\u002F2.concepts\u002F3.vocabularies",{"title":344,"path":345,"stem":346},"Profiles","\u002Fformat\u002Fconcepts\u002Fprofiles","format\u002F2.concepts\u002F4.profiles",{"title":348,"path":349,"stem":350},"Versions and deprecation","\u002Fformat\u002Fconcepts\u002Fversions-and-deprecation","format\u002F2.concepts\u002F5.versions-and-deprecation",{"title":352,"path":353,"stem":354},"Extensibility","\u002Fformat\u002Fconcepts\u002Fextensibility","format\u002F2.concepts\u002F6.extensibility",{"title":265,"path":356,"stem":357,"children":358,"page":197},"\u002Fformat\u002Fguides","format\u002F3.guides",[359,363,367,371,375],{"title":360,"path":361,"stem":362},"Writing a .well by hand","\u002Fformat\u002Fguides\u002Fwriting-by-hand","format\u002F3.guides\u002F1.writing-by-hand",{"title":364,"path":365,"stem":366},"Converting a report","\u002Fformat\u002Fguides\u002Fconverting-a-report","format\u002F3.guides\u002F2.converting-a-report",{"title":368,"path":369,"stem":370},"Validating","\u002Fformat\u002Fguides\u002Fvalidating","format\u002F3.guides\u002F3.validating",{"title":372,"path":373,"stem":374},"Extending for your own needs","\u002Fformat\u002Fguides\u002Fextending","format\u002F3.guides\u002F4.extending",{"title":376,"path":377,"stem":378},"Building an editor or database on .well","\u002Fformat\u002Fguides\u002Fbuilding-on-well","format\u002F3.guides\u002F5.building-on-well",{"title":380,"path":381,"stem":382,"children":383},"Overview","\u002Fformat\u002Freference","format\u002F4.reference\u002Findex",[384,385,389,393],{"title":380,"path":381,"stem":382},{"title":386,"path":387,"stem":388},"JSON Schema","\u002Fformat\u002Freference\u002Fjson-schema","format\u002F4.reference\u002F1.json-schema",{"title":390,"path":391,"stem":392},"Example wells","\u002Fformat\u002Freference\u002Fexamples","format\u002F4.reference\u002F2.examples",{"title":394,"path":395,"stem":396,"children":397},"Object reference","\u002Fformat\u002Freference\u002Fobjects","format\u002Freference\u002Fobjects\u002Findex",[398],{"title":394,"path":395,"stem":396},{"title":400,"path":401,"stem":402,"children":403},"About the spec","\u002Fformat\u002Fspec","format\u002F5.spec\u002Findex",[404],{"title":400,"path":401,"stem":402},{"title":406,"path":407,"stem":408},"Changelog","\u002Fformat\u002Fchangelog","format\u002F6.changelog",{"title":410,"path":411,"stem":412,"children":413},"Render","\u002Frender","render",[414,416,426,458],{"title":211,"path":411,"stem":415},"render\u002Findex",{"title":252,"path":417,"stem":418,"children":419,"page":197},"\u002Frender\u002Fgetting-started","render\u002F1.getting-started",[420,423],{"title":257,"path":421,"stem":422},"\u002Frender\u002Fgetting-started\u002Finstallation","render\u002F1.getting-started\u002F1.installation",{"title":261,"path":424,"stem":425},"\u002Frender\u002Fgetting-started\u002Ffirst-use","render\u002F1.getting-started\u002F2.first-use",{"title":265,"path":427,"stem":428,"children":429,"page":197},"\u002Frender\u002Fguides","render\u002F2.guides",[430,434,438,442,446,450,454],{"title":431,"path":432,"stem":433},"Panels and layout","\u002Frender\u002Fguides\u002Fpanels-and-layout","render\u002F2.guides\u002F1.panels-and-layout",{"title":435,"path":436,"stem":437},"Layers and labels","\u002Frender\u002Fguides\u002Flayers-and-labels","render\u002F2.guides\u002F2.layers-and-labels",{"title":439,"path":440,"stem":441},"Theming","\u002Frender\u002Fguides\u002Ftheming","render\u002F2.guides\u002F3.theming",{"title":443,"path":444,"stem":445},"Locale and units","\u002Frender\u002Fguides\u002Flocale-and-units","render\u002F2.guides\u002F4.locale-and-units",{"title":447,"path":448,"stem":449},"Legends","\u002Frender\u002Fguides\u002Flegends","render\u002F2.guides\u002F5.legends",{"title":451,"path":452,"stem":453},"Zoom, pan and highlights","\u002Frender\u002Fguides\u002Finteraction","render\u002F2.guides\u002F6.interaction",{"title":455,"path":456,"stem":457},"Using it in a framework","\u002Frender\u002Fguides\u002Fframeworks","render\u002F2.guides\u002F7.frameworks",{"title":294,"path":459,"stem":460,"children":461},"\u002Frender\u002Fapi","render\u002Fapi\u002Findex",[462],{"title":294,"path":459,"stem":460},{"title":464,"path":465,"stem":466,"children":467},"Utils","\u002Futils","utils",[468,470,480,516],{"title":211,"path":465,"stem":469},"utils\u002Findex",{"title":252,"path":471,"stem":472,"children":473,"page":197},"\u002Futils\u002Fgetting-started","utils\u002F1.getting-started",[474,477],{"title":257,"path":475,"stem":476},"\u002Futils\u002Fgetting-started\u002Finstallation","utils\u002F1.getting-started\u002F1.installation",{"title":261,"path":478,"stem":479},"\u002Futils\u002Fgetting-started\u002Ffirst-use","utils\u002F1.getting-started\u002F2.first-use",{"title":265,"path":481,"stem":482,"children":483,"page":197},"\u002Futils\u002Fguides","utils\u002F2.guides",[484,488,492,496,500,504,508,512],{"title":485,"path":486,"stem":487},"Geometry and volumes","\u002Futils\u002Fguides\u002Fgeometry-and-volumes","utils\u002F2.guides\u002F1.geometry-and-volumes",{"title":489,"path":490,"stem":491},"Water levels and pumping tests","\u002Futils\u002Fguides\u002Fpumping-tests","utils\u002F2.guides\u002F2.pumping-tests",{"title":493,"path":494,"stem":495},"Permits","\u002Futils\u002Fguides\u002Fpermits","utils\u002F2.guides\u002F3.permits",{"title":497,"path":498,"stem":499},"Operation and production","\u002Futils\u002Fguides\u002Foperation","utils\u002F2.guides\u002F4.operation",{"title":501,"path":502,"stem":503},"Water quality","\u002Futils\u002Fguides\u002Fwater-quality","utils\u002F2.guides\u002F5.water-quality",{"title":505,"path":506,"stem":507},"Logger import","\u002Futils\u002Fguides\u002Flogger-import","utils\u002F2.guides\u002F6.logger-import",{"title":509,"path":510,"stem":511},"SIAGAS import","\u002Futils\u002Fguides\u002Fsiagas-import","utils\u002F2.guides\u002F7.siagas-import",{"title":513,"path":514,"stem":515},"Formatting","\u002Futils\u002Fguides\u002Fformatting","utils\u002F2.guides\u002F8.formatting",{"title":294,"path":517,"stem":518,"children":519},"\u002Futils\u002Fapi","utils\u002Fapi\u002Findex",[520],{"title":294,"path":517,"stem":518},[522],{"title":300,"path":301,"stem":302,"children":523,"page":197},[524],{"title":525,"path":401,"stem":526,"children":527,"page":197},"Spec","format\u002Fspec",[528,537,546],{"title":529,"path":530,"stem":531,"children":532,"page":197},"Reference","\u002Fformat\u002Fspec\u002Freference","format\u002Fspec\u002Freference",[533],{"title":534,"path":535,"stem":536},"FGDC Texture Patterns Reference","\u002Fformat\u002Fspec\u002Freference\u002Ffgdc-textures","format\u002Fspec\u002Freference\u002Ffgdc-textures",{"title":538,"path":539,"stem":540,"children":541,"page":197},"V1","\u002Fformat\u002Fspec\u002Fv1","format\u002Fspec\u002Fv1",[542],{"title":543,"path":544,"stem":545},".well File Format Specification","\u002Fformat\u002Fspec\u002Fv1\u002Fwell-format","format\u002Fspec\u002Fv1\u002Fwell-format",{"title":547,"path":548,"stem":549,"children":550,"page":197},"V2","\u002Fformat\u002Fspec\u002Fv2","format\u002Fspec\u002Fv2",[551,555,559,563,567],{"title":552,"path":553,"stem":554},".well File Format Specification — Version 2.4: Format Reference","\u002Fformat\u002Fspec\u002Fv2\u002Fformat-reference","format\u002Fspec\u002Fv2\u002Fformat-reference",{"title":556,"path":557,"stem":558},".well File Format Specification — Version 2.4: Interoperability","\u002Fformat\u002Fspec\u002Fv2\u002Finteroperability","format\u002Fspec\u002Fv2\u002Finteroperability",{"title":560,"path":561,"stem":562},".well File Format Specification — Version 2.4: Object Schemas","\u002Fformat\u002Fspec\u002Fv2\u002Fobject-schemas","format\u002Fspec\u002Fv2\u002Fobject-schemas",{"title":564,"path":565,"stem":566},".well File Format Specification — Version 2.4: Overview","\u002Fformat\u002Fspec\u002Fv2\u002Foverview","format\u002Fspec\u002Fv2\u002Foverview",{"title":568,"path":569,"stem":570},".well File Format Specification — Version 2.4: Water Quality","\u002Fformat\u002Fspec\u002Fv2\u002Fwater-quality","format\u002Fspec\u002Fv2\u002Fwater-quality",[572,578,584],{"title":245,"path":246,"stem":247,"children":573,"page":197},[574],{"title":575,"path":576,"stem":577},"@welldot\u002Fcore","\u002Fcore\u002Fchangelog","core\u002FCHANGELOG",{"title":410,"path":411,"stem":412,"children":579,"page":197},[580],{"title":581,"path":582,"stem":583},"@welldot\u002Frender","\u002Frender\u002Fchangelog","render\u002FCHANGELOG",{"title":464,"path":465,"stem":466,"children":585,"page":197},[586],{"title":587,"path":588,"stem":589},"@welldot\u002Futils","\u002Futils\u002Fchangelog","utils\u002FCHANGELOG",1793050509549]