JSON.ToToon
-----------

Converts the JSON to TOON.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [JSON](component_JSON.md) | [16.1](newinversion161.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "JSON.ToToon"; JSON ) 

**MBS**( **"JSON.ToToon";** /\* Converts the JSON to TOON. \*/  
**$JSON**) /\* A JSON text or reference.e.g. "{\\"people\\":\[{\\"first\\":\\"Christian\\",\\"last\\":\\"Schmitz\\",\\"city\\":\\"Nickenich\\"}\]}" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JSON | A JSON text or reference. | "{\\"people\\":\[{\\"first\\":\\"Christian\\",\\"last\\":\\"Schmitz\\",\\"city\\":\\"Nickenich\\"}\]}" |

### Result

Returns text or error.

### Description

Converts the JSON to TOON.  
The Token-Oriented Object Notation is a human-readable encoding of the JSON data model that minimizes tokens and makes structure easy for models to read. You can use it with LLM instead of JSON.  
  
see also  
<https://github.com/toon-format/toon>  
### Examples

Creates a simple toon:

 MBS ("JSON.ToToon"; JSONSetElement ( "{}" ; "hello" ; 123 ; JSONNumber ))  
<small>  
Example result: hello: 123</small>Create a more complex toon:

 MBS ("JSON.ToToon"; "{\\"people\\":\[{\\"first\\":\\"Christian\\",\\"last\\":\\"Schmitz\\",\\"city\\":\\"Nickenich\\"}\]}")  
<small>  
Example result:   
people\[1\]{first,last,city}:  
 Christian,Schmitz,Nickenich</small>### See also

- [JSON.FromToon](JSONFromToon.md)

### Release notes

- **Version 16.1**
    - Added [JSON.ToToon](https://www.mbsplugins.eu/JSONToToon.shtml) function for passing data to LLMs.

### Blog Entries

- [MBS FileMaker Plugin 16.2 News](https://www.mbsplugins.de/archive/2026-05-20/MBS_FileMaker_Plugin_162_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 16.1 News](https://www.mbsplugins.de/archive/2026-03-31/MBS_FileMaker_Plugin_161_News/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 16.1 für Claris FileMaker](https://www.mbsplugins.de/archive/2026-03-17/Neues_MBS_Plugin_161_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 16.1 for Claris FileMaker - More than 7800 functions in one plugin](https://www.mbsplugins.de/archive/2026-03-17/MBS_FileMaker_Plugin_161_for_C/monkeybreadsoftware_blog_filemaker)
- [Introducing TOON and JSON.ToToon in the MBS Plugin](https://www.mbsplugins.de/archive/2026-02-09/Introducing_TOON_and_JSONToToo/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.1pr1](https://www.mbsplugins.de/archive/2026-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 30th January 2026 , last changed 1st February 2026

  
[JSON.ToHTML](JSONToHTML.md) - [JSON.ToXML](JSONToXML.md)

[HTML Version](JSONToToon.shtml)