Skip to main content

JsonImport

Type

function

Summary

Converts a string in JSON format to a LiveCode value.

Syntax

JsonImport(<pString>)

Description

Use the JsonImport function to convert a JSON format string to a LiveCode value.

The JsonImport function is implemented using jsonDecode.

If an error is encountered in the JSON formatted string, an error is thrown.

Important

: The JsonImport function has been deprecated and should not be used in new code. Existing code should be updated to use jsonDecode.

Parameters

NameTypeDescription

pString

The string in JSON format to be converted to a LiveCode value.

Examples

JsonImport("[]") -- returns []

function: jsonEncode, jsonDecode, JsonExport

Compatibility and Support

Introduced

LiveCode Create 1.0

OS

mac

windows

linux

ios

android

web

Platforms

desktop

server

mobile