Skip to main content

system.mes.location.exportAsJsonBytes

Description

Exports all Locations as raw bytes in JSON format (UTF-8 encoded). Streams location data from the database and formats it as JSON, including a header row.

Syntax

system.mes.location.exportAsJsonBytes()

Parameters

No parameters.

Returns

A Byte array (Byte[]) containing the raw byte data of the JSON export.

Code Examples

Perspective

jsonBytes = system.mes.location.exportAsJsonBytes()
system.perspective.download("locations.json", jsonBytes)