[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-685682-105":3,"doc-detail-685682-en":80,"detail-sidebar-cat-0-en-105":110,"doc-similar-685682":158},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","nano-json-working-with-json-formatted-data-in-isabellehol-and-isabelleml-abstract","Nano JSON - Working with JSON formatted data in Isabelle/HOL and Isabelle/ML - Abstract","","JSON (JavaScript Object Notation) is a widely used key/value and list format for exchanging data, designed for human readability and machine parsing. Its language-independent nature makes it suitable for integrating JSON workflows into Isabelle/HOL. This AFP entry introduces a JSON-like import/export expert format for both Isabelle/HOL and Isabelle/ML, enabling Isabelle/HOL users to handle JSON without ML, while providing ML interfaces for extensions and integration beyond the HOL level. Although not fully JSON-compliant due to Unicode range limits, it has been used successfully in projects exchanging sizable datasets with external tools.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/nano-json-working-with-json-formatted-data-in-isabellehol-and-isabelleml-abstract/685682/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/nano-json-working-with-json-formatted-data-in-isabellehol-and-isabelleml-abstract/685682.png","ImageObject",300,407,{"name":42,"@type":43},"asba","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-11","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is the Nano JSON format, and why is it useful in Isabelle?","Question",{"text":62,"@type":63},"Nano JSON is a JSON-like import/export expert format for Isabelle/HOL and Isabelle/ML. It provides a HOL data model and top-level Isar commands to work with JSON-encoded data directly in Isabelle.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How do Isabelle/HOL and Isabelle/ML roles differ for JSON support?",{"text":67,"@type":63},"Isabelle/HOL users can work with JSON via a HOL data type modeling JSON and Isar commands for import/export and inline parsing. Isabelle/ML provides interfaces for deeper implementation and for extensions that are not yet exposed at the HOL level.",{"name":69,"@type":60,"acceptedAnswer":70},"Is Nano JSON fully compatible with standard JSON?",{"text":71,"@type":63},"No. The format is not fully JSON compliant, for example due to limitations in the range of supported Unicode characters. In most situations, however, the implementation works successfully.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},685682,1794016570,{"code":4,"msg":81,"data":82},"success",{"doc_id":78,"user_id":83,"nickname":42,"user_avatar":84,"doc_module":4,"category_id":85,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":86,"file_id":87,"file_url":88,"file_type":89,"file_size":90,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":91,"language":92,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":93,"faqs":94,"seo_title":95,"seo_description":12,"update_tm":79,"read_time":96,"preview_page_count":30,"preview_urls":97},3985747872567,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c",6,"Nano JSON  \nWorking with JSON formatted data in Isabelle/HOL and Isabelle/ML  \nAchim D. Brucker  \nNovember 6, 2026  \nDepartment of Computer Science, University of Exeter, Exeter, UK  \n[a.brucker@exeter.ac.uk](a.brucker@exeter.ac.uk)  \nAbstract  \nJSON (JavaScript Object Notation) is a common format for exchanging data, based on a collection of key/value-pairs (the JSON objects) and lists. Its syntax is inspired by JavaScript with the aim of being easy to read and write for humans and easy to parse and generate for machines. Despite its origin in the JavaScript world, JSON is language-independent and many programming languages support working with JSON-encoded data. This makes JSON an interesting format for exchanging data with Isabelle/HOL.  \nThis AFP entry provides aJSON-like import-expert format for both Isabelle/ML and Isabelle/HOL. On the one hand, this AFP entry provides means for Isabelle/HOL users to work with JSON encoded data without the need using Isabelle/ML. On the other and, the provided Isabelle/ML interfaces allow additional extensions or integration into Isabelle extensions written in Isabelle/ML. While format is not fully JSON compliant (e.g., due to limitations in the range of supported Unicode characters), it works in most situations: the provided implementation in Isabelle/ML and its representation in Isabelle/HOL have been used successfully in several projects for exchanging data sets of several hundredths of megabyte between Isabelle and external tools.  \nKeywords: JSON, JavaScript Object Notation, data exchange, data import, data export  \nContents  \n1 Introduction 7  \n2 Implementation 9  \n2.1 An Import/Export of JSON-like Formats for Isabelle/HOL (Nano_JSON) ............. 9  \n2.1.1 Defining a JSON-like Data Structure ............................ 9  \nA HOL Data Type for JSON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  \nML Implementation .................................... 10  \n2.1.2 Parsing Nano JSON ..................................... 11  \nML Implementation .................................... 11  \nIsar Setup: Cartouche and Isar-Top-level Binding ..................... 13  \nExamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  \n2.1.3 Serializing Nano JSON ................................... 16  \nML Implementation .................................... 16  \nIsar Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  \nExamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17  \n2.1.4 Putting Everything Together ................................ 17  \n2.2 Query Infrastructure (Nano_JSON_Query) ............................. 17  \nIsabelle/ML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18  \nIsabelle/HOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19  \n2.3 The Main Theory of Nano JSON (Nano_JSON_Main) ........................ 20  \n3 User’s Guide and Examples 21  \n3.1 The Nano JSON Manual (Nano_JSON_Manual) ........................... 21  \n3.1.1 Isabelle/HOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21  \n3.1.2 Isabelle/ML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22  \n3.2 Examples (Example) ........................................ 22  \n3.3 Examples Real (Example_Real) .................................. 25  \n1 Introduction  \nJSON (JavaScript Object Notation) [5, 1] is a widely-used format for exchanging data, having replaced XML [2] in many areas. The structure of JSON is based on:  \n• A collection of key-value (name-value) pairs, also called JSON object. In programming languages, this corresponds, e.g., to data structures such as objects, records, structs, or hash tables.  \n• A finite list of values. In programming languages, this corresponds, e.g., to lists, sequences, or arrays.  \nThe syntax of is inspired by JavaScript w","cbCairzj9P96j8Ze","https://ap.wps.com/l/cbCairzj9P96j8Ze","pdf",100505,29,"English","# Introduction\n## JSON structure and motivation\n## Isabelle/HOL and Isabelle/ML scope\n# Implementation\n## An Import/Export of JSON-like Formats for Isabelle/HOL (Nano_JSON)\n### Defining a JSON-like Data Structure\n### Parsing Nano JSON\n### Serializing Nano JSON\n### Putting Everything Together\n## Query Infrastructure (Nano_JSON_Query)\n## The Main Theory of Nano JSON (Nano_JSON_Main)\n# User’s Guide and Examples\n## The Nano JSON Manual (Nano_JSON_Manual)\n## Examples","[{\"question\":\"What is the Nano JSON format, and why is it useful in Isabelle?\",\"answer\":\"Nano JSON is a JSON-like import/export expert format for Isabelle/HOL and Isabelle/ML. It provides a HOL data model and top-level Isar commands to work with JSON-encoded data directly in Isabelle.\"},{\"question\":\"How do Isabelle/HOL and Isabelle/ML roles differ for JSON support?\",\"answer\":\"Isabelle/HOL users can work with JSON via a HOL data type modeling JSON and Isar commands for import/export and inline parsing. Isabelle/ML provides interfaces for deeper implementation and for extensions that are not yet exposed at the HOL level.\"},{\"question\":\"Is Nano JSON fully compatible with standard JSON?\",\"answer\":\"No. The format is not fully JSON compliant, for example due to limitations in the range of supported Unicode characters. In most situations, however, the implementation works successfully.\"}]","Nano JSON - Working with JSON formatted data in Isabelle/HOL and Isabelle/ML - Abstract | PDF",73,[98,102,106],{"page_no":22,"url":99,"width":100,"height":101},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/3c1cf0a4f6405030bfe8a60ddfb1ee65.webp",983,1390,{"page_no":26,"url":103,"width":104,"height":105},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/30a9edaaae27f32e12b8f04723603a10.webp",982,1388,{"page_no":30,"url":107,"width":108,"height":109},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d4a808c512e0a4cc2960c874841b1d8e.webp",981,1387,{"code":4,"msg":81,"data":111},[112,116,120,124,129,132,137,142,147,150,154],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":113,"show_sort_weight":114,"slug":115},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":122,"slug":123},"Exam",70,"exam",{"id":125,"doc_module":4,"doc_module_name":25,"category_name":126,"show_sort_weight":127,"slug":128},5,"Comic",60,"comic",{"id":85,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":130,"slug":131},50,"technology",{"id":133,"doc_module":4,"doc_module_name":25,"category_name":134,"show_sort_weight":135,"slug":136},7,"Healthcare",40,"healthcare",{"id":138,"doc_module":4,"doc_module_name":25,"category_name":139,"show_sort_weight":140,"slug":141},8,"Research & Report",30,"research-report",{"id":143,"doc_module":4,"doc_module_name":25,"category_name":144,"show_sort_weight":145,"slug":146},9,"Religion & Spirituality",20,"religion-spirituality",{"id":145,"doc_module":4,"doc_module_name":25,"category_name":148,"show_sort_weight":145,"slug":149},"World Cup","world-cup",{"id":151,"doc_module":4,"doc_module_name":25,"category_name":152,"show_sort_weight":151,"slug":153},10,"Lifestyle","lifestyle",{"id":155,"doc_module":4,"doc_module_name":25,"category_name":156,"show_sort_weight":125,"slug":157},19,"General","general",{"list":159,"token":11},[160,166,172,178,184,191,197,204,211,218],{"doc_id":161,"doc_title":162,"file_type":89,"home_preview_img_url":163,"slug":164,"view_count":33,"category_name":29,"create_tm":165},685683,"JSON - Quick Guide - Overview - Syntax - Datatypes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999686685/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=iaX97DGYElHGsm%2Bu9AlwjkgfXQ0%3D","json-quick-guide-overview-syntax-datatypes",1794016574,{"doc_id":167,"doc_title":168,"file_type":89,"home_preview_img_url":169,"slug":170,"view_count":33,"category_name":29,"create_tm":171},685680,"ECMA-404 - The JSON Data Interchange Syntax - 2nd Edition - December 2017","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000176288/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=jomK%2Fyi670aE7kI8JSoHV1Txwaw%3D","ecma-404-the-json-data-interchange-syntax-2nd-edition-december-2017",1794016568,{"doc_id":173,"doc_title":174,"file_type":89,"home_preview_img_url":175,"slug":176,"view_count":33,"category_name":29,"create_tm":177},668987,"Technical Communication - Key Shortcuts - Doppler Gear TechBit","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229987438107/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=pvNGPLkhYViKex%2FTfj694jkHHUI%3D","technical-communication-key-shortcuts-doppler-gear-techbit",1793522263,{"doc_id":179,"doc_title":180,"file_type":89,"home_preview_img_url":181,"slug":182,"view_count":143,"category_name":29,"create_tm":183},665600,"jvenn: an interactive Venn diagram viewer","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983497962/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=Ic6doJyLcLfj6NW2sJbknRxnbhY%3D","jvenn-an-interactive-venn-diagram-viewer",1793305139,{"doc_id":185,"doc_title":186,"file_type":89,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":29,"create_tm":190},119117,"Using Machine Learning and Simplified Functional Measures to Estimate Software Development Effort","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835103861/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=W5%2BKocaShuYIN%2FrXtXsGUGczV5k%3D","using-machine-learning-and-simplified-functional-measures-to-estimate-software-development-effort",16,1785722467,{"doc_id":192,"doc_title":193,"file_type":89,"home_preview_img_url":194,"slug":195,"view_count":85,"category_name":29,"create_tm":196},561388,"How to select right model of emulator - select the correct emulator model by disk capacity, floppy interface and disk format","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947646287/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=tUVfbAB6%2B1SuTU8u90d5ZCSUjnk%3D","how-to-select-right-model-of-emulator-select-the-correct-emulator-model-by-disk-capacity-floppy-interface-and-disk-format",1791805734,{"doc_id":198,"doc_title":199,"file_type":89,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=Vu9CZuigXXwqFD%2FnQcD6WfMH8LQ%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":205,"doc_title":206,"file_type":89,"home_preview_img_url":207,"slug":208,"view_count":209,"category_name":29,"create_tm":210},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=Kwc%2FrWpErV%2BBB4nTtgWrsiGBPGM%3D","xnx-universal-transmitter-installation-manual",855,1776135954,{"doc_id":212,"doc_title":213,"file_type":89,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":29,"create_tm":217},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=aOKT2QQ49Togh6Ybj8z8szYIYxo%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":219,"doc_title":220,"file_type":89,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":29,"create_tm":224},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=uee7jaymUTqoNVqMAVvN5ek1OJM%3D","free-fire-proxy-server",565,1776135932]