JSONP Support
- Updated2025-08-15
- 1 minute(s) read
To use JSONP in order to avoid the same-origin policy in most browsers, make any request as normal and add an extra $callback parameter. For example, GET http://my_server:3580/nivariable/VariableObjects('ni.var.psp://localhost')/type?$format=json&$callback=my_callback
The JSON data is passed as a parameter to a function called my_callback, which you supplied with the $callback parameter. JSONP support is only valid when JSON format is requested. JSONP support is ignored if XML format is requested.
Waveform Representations
Waveforms in LabVIEW are clusters of four components: t0, dt, Y, and attributes. In JSON, waveforms are represented as the string value of the JSON object representation. In XML, LabVIEW flattens the values to an XML primitive VI. The "<" and ">" are escaped with " < " and " > " and stored as the string value of the Value property.