Maintain Order in JSON Import

Sannyasin Brahmanathaswami brahma at hindu.org
Mon Sep 12 21:57:39 EDT 2016


OK… so long as we are using bracket form… 

 someArray [

]
then we will get numeric, sortable keys… so than just go ahead and use standard JSON notation inside the array..

got it. tks

On 9/12/16, 11:31 AM, "use-livecode on behalf of Monte Goulding" <use-livecode-bounces at lists.runrev.com on behalf of monte at appisle.net> wrote:

    It is not hacky. It is the way you represent sequences in JSON. The hacky part is the pipe delimiter. Try:
    
    
    "colorwheel": [
                                {
                                   “name”: “Red”,
                                    “color”: “255,0,0"
                                },
                                ...
    
    or 
    
    "colorwheel": [
                                {
                                    “Red”: “255,0,0"
                                },




More information about the use-livecode mailing list