Draft:MSON
Where to get help
How to improve a draft
You can also browse Wikipedia:Featured articles and Wikipedia:Good articles to find examples of Wikipedia's best writing on topics similar to your proposed article. Improving your odds of a speedy review To improve your odds of a faster review, tag your draft with relevant WikiProject tags using the button below. This will let reviewers know a new draft has been submitted in their area of interest. For instance, if you wrote about a female astronomer, you would want to add the Biography, Astronomy, and Women scientists tags. Editor resources
|
Comment: In accordance with Wikipedia's Conflict of interest guideline, I disclose that I have a conflict of interest regarding the subject of this article. LemOneLabs (talk) 03:32, 28 June 2026 (UTC)
| Markdown Structured Object Notation | |
|---|---|
| Filename extension |
.mson |
| Internet media type |
application/mson |
| Type code | MARKDOWN |
| Uniform Type Identifier (UTI) | public.mson |
| Developed by | Dustin Lee |
| Latest release | 1.0.3 June 2026 |
| Type of format | Data interchange |
| Extended from | JavaScript |
| Open format? | Yes |
| Website | github |
MSON/MaSON (Markdown Structured Object Notation) is an open-source, ultra-lightweight data serialization language and parser designed to bridge the visual clarity of standard Markdown with the structure of JSON objects. Developed by the software developer Dustin Lee, MaSON was released in June 2026.
The format aims to replace traditional configuration and data interchange formats—such as JSON, YAML, and TOML—in use cases where data must be easily human-authored, edited, or fed into large language models (LLMs).
Background and Rationale
Data serialization formats like JSON are highly machine-readable but are frequently criticized for being difficult to author or edit by hand due to strict punctuation requirements (e.g., missing trailing commas, unquoted keys, or mismatched brackets). While alternative formats like YAML remove bracket-heavy syntax, they introduce fragile spacing and indentation rules. Similarly, TOML can become verbose when managing deeply nested object topologies.
MaSON was designed to eliminate these trade-offs by utilizing standard Markdown syntax (such as headings and bulleted lists) as a structured hierarchy. Because it strips out repetitive structural characters, it drastically reduces character footprints, making it highly token-efficient when injecting structured configurations or data into LLM system prompts.
Features
- Zero-Bracket Nesting: Structure and hierarchy are defined using native Markdown heading syntax (`#`, `##`, `###`) and list structures, completely eliminating curly braces or brackets for object nesting.
- No Spacing Indentation Rules: Unlike YAML, MaSON does not rely on strict multi-space indentation rules, reducing layout-based parsing errors.
- Deterministic Round-Tripping: MaSON provides full bidirectional support, allowing standard JavaScript objects to be cleanly serialized (`stringify()`) and parsed back (`parse()`) without loss of data integrity.
- LLM Token Optimization: By removing repetitive syntax markers like double quotes and brackets, MaSON optimizes prompt space in generative AI applications.
- Embedded Code Block Isolation: The parser natively handles complex edge cases, such as dynamic backtick delimiter matching to isolate embedded code blocks and automated Markdown language tag stripping.
Syntax Example
Instead of writing nested objects via curly braces, MaSON utilizes document flow:
```mson # Server Setup debugMode: false maxRetries: 5 # Servers * [https://api.prod.coolapp.com](https://api.prod.coolapp.com) * [https://api.backup.coolapp.com](https://api.backup.coolapp.com) # Database driver: postgres ## Credentials user: admin host: localhost ```
The underlying TypeScript parser converts the native Markdown line-by-line grammar directly into a standard JavaScript object representation. Explicit complex arrays can be forced via syntax suffixes, such as `# Users[]`.
Implementation
The reference implementation of MaSON is written in TypeScript and is packaged to have a minimal footprint (<2KB gzipped). It features a deterministic grammar layout designed for deployment across both Node.js server environments and edge/browser runtimes.
See also
External links
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.

- provide significant coverage: discuss the subject in detail, not just brief mentions or routine announcements;
- are reliable: from reputable outlets with editorial oversight;
- are independent: not connected to the subject, such as the subject's own website, or sponsored content.
Please add references that meet all three of these criteria. If none exist, the subject is not yet suitable for Wikipedia.