Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

EnvironmentVariables.JSON

Queries all variables with values as JSON.

Component Version macOS Windows Linux Server iOS SDK
EnvironmentVariables 16.1 ✅ 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" )

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" }

See also

Release notes

Blog Entries

This function is free to use.

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


EnvironmentVariables.Count - EnvironmentVariables.Name