Array editing or Validate JSON string?

bob at bobhall.net bob at bobhall.net
Sun Nov 18 09:18:04 EST 2018


Livecode provides a text editor to, well, edit text. It does not understand the syntax/grammar of languages (Livecode, HTML, Javascript, JSON, YML, etc). What you need is an editor that “knows" JSON. 

Your best bet is to copy the text into Sublime, Visual Studio Code or Atom which do understand JSON’s syntax/grammar. There may be some configuration to the tool you will need to do but you will get indications from these editors when you have malformed JSON.

- Bob Hall

> On Nov 17, 2018, at 6:39 PM, William Prothero via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> What I would like to do is get a dialog that the JSON wasn’t formed correctly. Of course, since I’m using it for my personal development of my app, I can know that it failed if I don’t get the answer dialog I put in after it. but, it seems a kludge. Shouldn’t there be some kind of an error result if the JSON is ill-formed?




More information about the use-livecode mailing list