| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Container.JSON
Queries container details as JSON.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Container | 16.6 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Container.JSON"; Container { ; Flags } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Container | The container field or value to inspect. | ||
| Flags | Pass 1 to include all data. Default is zero. |
0 | Optional |
Result
Returns JSON or error.
Description
Queries container details as JSON.This includes name, size, DPI, types.
Examples
Query details for a JPEG image:
MBS( "Container.JSON"; Assets::Image )
Example result:
{ "count": 4, "totalSize": 434606, "FNAM": "image:test.jpg", "name": "test.jpg", "size": { "width": 2136, "height": 1424 }, "DPI": { "x": 72, "y": 72 }, "items": [ { "type": "DPI_", "size": 4, "data": "AEgASA==" }, { "type": "FNAM", "size": 20, "data": "AAAAAQUzNzs9PwAILj8pLnQwKj0=" }, { "type": "JPEG", "size": 434606 }, { "type": "SIZE", "size": 4, "data": "CFgFkA==" } ], "empty": false, "compressed": false }
Example result:
{ "count": 4, "totalSize": 434606, "FNAM": "image:test.jpg", "name": "test.jpg", "size": { "width": 2136, "height": 1424 }, "DPI": { "x": 72, "y": 72 }, "items": [ { "type": "DPI_", "size": 4, "data": "AEgASA==" }, { "type": "FNAM", "size": 20, "data": "AAAAAQUzNzs9PwAILj8pLnQwKj0=" }, { "type": "JPEG", "size": 434606 }, { "type": "SIZE", "size": 4, "data": "CFgFkA==" } ], "empty": false, "compressed": false }
Query details for a RTF text:
MBS( "Container.JSON"; Assets::Image )
Example result:
{ "count": 2, "totalSize": 392, "FNAM": "file:test.rtf", "name": "test.rtf", "items": [ { "type": "FILE", "size": 392 }, { "type": "FNAM", "size": 19, "data": "AAAAAQQ8MzY/AAguPykudCguPA==" } ], "empty": false, "compressed": false }
Example result:
{ "count": 2, "totalSize": 392, "FNAM": "file:test.rtf", "name": "test.rtf", "items": [ { "type": "FILE", "size": 392 }, { "type": "FNAM", "size": 19, "data": "AAAAAQQ8MzY/AAguPykudCguPA==" } ], "empty": false, "compressed": false }
Query details for a compressed RTF text:
MBS( "Container.JSON"; Assets::Image )
Example result:
{ "count": 2, "totalSize": 272, "FNAM": "file:test.rtf", "name": "test.rtf", "items": [ { "type": "FNAM", "size": 19, "data": "AAAAAQQ8MzY/AAguPykudCguPA==" }, { "type": "ZLIB", "size": 272 } ], "empty": false, "compressed": true }
Example result:
{ "count": 2, "totalSize": 272, "FNAM": "file:test.rtf", "name": "test.rtf", "items": [ { "type": "FNAM", "size": 19, "data": "AAAAAQQ8MzY/AAguPykudCguPA==" }, { "type": "ZLIB", "size": 272 } ], "empty": false, "compressed": true }
Query details for PDF with preview:
MBS( "Container.JSON"; Assets::Image )
Example result:
{ "count": 5, "totalSize": 1904451, "main": "PDF ", "FNAM": "image:Installation.pdf", "name": "Installation.pdf", "size": { "width": 595, "height": 842 }, "items": [ { "type": "FNAM", "size": 28, "data": "AAAAAQUzNzs9PwAQEzQpLjs2NjsuMzU0dCo+PA==" }, { "type": "MAIN", "size": 4, "data": "UERGIA==" }, { "type": "PDF ", "size": 1904451 }, { "type": "PNGf", "size": 83897 }, { "type": "SIZE", "size": 4, "data": "AlMDSg==" } ], "empty": false, "compressed": false }
Example result:
{ "count": 5, "totalSize": 1904451, "main": "PDF ", "FNAM": "image:Installation.pdf", "name": "Installation.pdf", "size": { "width": 595, "height": 842 }, "items": [ { "type": "FNAM", "size": 28, "data": "AAAAAQUzNzs9PwAQEzQpLjs2NjsuMzU0dCo+PA==" }, { "type": "MAIN", "size": 4, "data": "UERGIA==" }, { "type": "PDF ", "size": 1904451 }, { "type": "PNGf", "size": 83897 }, { "type": "SIZE", "size": 4, "data": "AlMDSg==" } ], "empty": false, "compressed": false }
Query details for WEBP with JPEG preview:
MBS( "Container.JSON"; Assets::Image )
Example result:
{ "count": 5, "totalSize": 4880, "main": "WEBP", "FNAM": "image:test.webp", "name": "test.webp", "size": { "width": 128, "height": 128 }, "items": [ { "type": "FNAM", "size": 21, "data": "AAAAAQUzNzs9PwAJLj8pLnQtPzgq" }, { "type": "JPEG", "size": 5875 }, { "type": "MAIN", "size": 4, "data": "V0VCUA==" }, { "type": "SIZE", "size": 4, "data": "AIAAgA==" }, { "type": "WEBP", "size": 4880 } ], "empty": false, "compressed": false }
Example result:
{ "count": 5, "totalSize": 4880, "main": "WEBP", "FNAM": "image:test.webp", "name": "test.webp", "size": { "width": 128, "height": 128 }, "items": [ { "type": "FNAM", "size": 21, "data": "AAAAAQUzNzs9PwAJLj8pLnQtPzgq" }, { "type": "JPEG", "size": 5875 }, { "type": "MAIN", "size": 4, "data": "V0VCUA==" }, { "type": "SIZE", "size": 4, "data": "AIAAgA==" }, { "type": "WEBP", "size": 4880 } ], "empty": false, "compressed": false }
Release notes
- Version 16.6
- Added Container.JSON function.
Created 22nd November 2026, last changed 22nd November 2026
MarkDown version: ContainerJSON.md