ws.goulding.script-library.mergjson

Typelibrary
DictionaryLCS
LibraryLiveCode Script
Associationsws.goulding.script-library.mergjson
Summary

The mergJSON external itself can not parse JSON to and from multi-dimensional arrays. This is achieved through JSONToArray and ArrayToJSON script functions provided in this library. The implementations in this library are intented to be generally useful in addition to providing a basis for implementations focussed on edge cases such as ArrayToJSON that forces a known element to be an object.

Description

The mergJSON external itself can not parse JSON to and from multi-dimensional arrays. This is achieved through JSONToArray and ArrayToJSON script functions provided in this library. The implementations in this library are intented to be generally useful in addition to providing a basis for implementations focussed on edge cases such as ArrayToJSON that forces a known element to be an object.

TypeNameSummarySyntax
functionArrayToJSON

Parse a LiveCode array to JSON

ArrayToJSON(<pArray>,<pForceRootType>,<pPretty>)

- - -JSONToArray

Parse JSON to a LiveCode array

JSONToArray(<pJSON>)

libraryws.goulding.script-library.mergjson

The mergJSON external itself can not parse JSON to and from multi-dimensional arrays. This is achieved through JSONToArray and ArrayToJSON script functions provided in this library. The implementations in this library are intented to be generally useful in addition to providing a basis for implementations focussed on edge cases such as ArrayToJSON that forces a known element to be an object.

JSONToArray(<pJSON>)