WMIQuery.JSON
-------------

Queries the query result as JSON.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WMIQuery](component_WMIQuery.md) | [15.5](newinversion155.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WMIQuery.JSON"; WMIQueryRef ) 

**MBS**( **"WMIQuery.JSON";** /\* Queries the query result as JSON. \*/  
**$WMIQueryRef**) /\* The reference to the query. Create it with [WMIQuery.New](WMIQueryNew.md) and destroy them with [WMIQuery.Release](WMIQueryRelease.md).e.g. $ref \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WMIQueryRef | The reference to the query. Create it with [WMIQuery.New](WMIQueryNew.md) and destroy them with [WMIQuery.Release](WMIQueryRelease.md). | $ref |

### Result

Returns JSON or error.

### Description

Queries the query result as JSON.  
### See also

- [WMIQuery.New](WMIQueryNew.md)
- [WMIQuery.Release](WMIQueryRelease.md)

### Release notes

- **Version 15.5**
    - Added [WMIQuery.JSON](https://www.mbsplugins.eu/WMIQueryJSON.shtml) function.

### Example Databases

- [Win Only/WMI Query](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/WMI%20Query.shtml#3ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 15.5](https://www.mbsplugins.de/archive/2025-11-25/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 15.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-11-18/Neues_MBS_Plugin_155_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.5 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-11-18/MBS_Plugin_155_for_Claris_File/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 9th October 2025 , last changed 9th October 2025

  
[WMIQuery.Connect](WMIQueryConnect.md) - [WMIQuery.New](WMIQueryNew.md)

[HTML Version](WMIQueryJSON.shtml)