This is a very interesting discussion of LC arrays. But back to the original 
post:

> HENRY LOWE wrote:
> 
> I am using multidimensional arrays to process data read from JSON files.
> Some of the data in the JSON files can be represented in alternative forms in 
> files from different sources.
> For example a field named ?status? may be represented as either:

> "status": {
>    "text":"active"}
> 
> or
> "status": {"active"}
> 
> To recognize both forms I use code (after transforming JSON to an array 
> tArray] 

Perhaps massage the JSON before importing it into an array.

           replace quote & "text" & quote & ":" with empty in myJSON

In this way there won't need to distinguish "alternate forms" in the LC array.

Jim Lambert
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to