jsonEncodeAscii
Type
function
Summary
Converts a value to a string in JSON format, using only ASCII characters and minimal whitespace.
Syntax
jsonEncodeAscii(<pValue>)
Description
Use the jsonEncodeAscii function to convert a value into a string in JSON format using only ASCII characters and minimal whitespace.
The resulting JSON will use unicode escapes (\uXXXX
) in strings for all non-
ascii characters.
For more details about LiveCode's JSON encoding support see jsonEncode.
Parameters
Name | Type | Description |
---|---|---|
pValue | The value to be converted to JSON format. |
Examples
jsonEncodeAscii("é") -- returns "\u00e9" (quoted)
Related
function: jsonEncode, jsonDecode, jsonEncodeUtf8, jsonDecodeUtf8, jsonEncodeForDisplay
Compatibility and Support
Introduced
LiveCode Create 1.0
OS
mac
windows
linux
ios
android
web
Platforms
desktop
server
mobile