EnvironmentVariables.JSON
-------------------------

Queries all variables with values as JSON.

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

MBS( "EnvironmentVariables.JSON" ) ### Parameters

none

### Result

Returns JSON or error.

### Description

Queries all variables with values as JSON.  
### Examples

Query variables on macOS:

 MBS ( "EnvironmentVariables.JSON" )  
<small>  
Example result:   
{ "USER" : "cs" , "COMMAND\_MODE" : "unix2003" , "\_\_CFBundleIdentifier" : "com.filemaker.client.pro12" , "PATH" : "/usr/bin:/bin:/usr/sbin:/sbin" , "LOGNAME" : "cs" , "SSH\_AUTH\_SOCK" : "/private/tmp/com.apple.launchd.iXMjiPeWPN/Listeners" , "HOME" : "/Users/cs" , "SHELL" : "/bin/zsh" , "TMPDIR" : "/var/folders/xv/4dhqggss03gc5r26p68b9pgc0000gn/T/" , "\_\_CF\_USER\_TEXT\_ENCODING" : "0x1F5:0x0:0x0" , "XPC\_SERVICE\_NAME" : "application.com.filemaker.client.pro12.243918009.243918015" , "XPC\_FLAGS" : "0x0" } </small>### See also

- [EnvironmentVariables.Count](EnvironmentVariablesCount.md)
- [EnvironmentVariables.Name](EnvironmentVariablesName.md)
- [EnvironmentVariables.Names](EnvironmentVariablesNames.md)
- [EnvironmentVariables.Value](EnvironmentVariablesValue.md)

### Release notes

- **Version 16.1**
    - Added [EnvironmentVariables.JSON](https://www.mbsplugins.eu/EnvironmentVariablesJSON.shtml) function.

### Blog Entries

- [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)
- [MBS FileMaker Plugin, version 16.1pr3](https://www.mbsplugins.de/archive/2026-02-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 13th February 2026 , last changed 13th February 2026

  
[EnvironmentVariables.Count](EnvironmentVariablesCount.md) - [EnvironmentVariables.Name](EnvironmentVariablesName.md)

[HTML Version](EnvironmentVariablesJSON.shtml)