Data Persistence

Richard Gaskin ambassador at fourthworld.com
Fri Jul 27 18:40:25 EDT 2018


Alex Tweedly wrote:

> On 27/07/2018 20:17, Richard Gaskin via use-livecode wrote:
>>
>> >  Using arrays intigues me, especially if I can just keep it in RAM (It
>> > is a small amount of data for sure).
>>
>> One great thing about LC's built-in support for arrays is that it's 
>> built-in.
>>
>> JSON has become used in so many other languages that we've forgotten 
>> why it was invented:  to serialize JavaScript objects as simply and 
>> efficiently as possible using features already built into the 
>> JavaScript interpreter.
>>
>> LSON is that for us, as much a with-the-grain approach to data 
>> handling in LiveCode as JSON is for JavaScript.
> I just wish there was a human-readable, human-editable-in-a-text-editor 
> variant of LSON :-)

True, LSON is even closer to BSON ("Binary JSON") than JSON itself, with 
all the machine-parsing efficiencies inherent in a binary format.

The world wanted a human-readable/writable form of JSON too, so YAML was 
invented. :)

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the Use-livecode mailing list