Livecode Json Arrays Key Sort

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Livecode Json Arrays Key Sort

Bob Sneidar via use-livecode
put JSONToArray(tJson) into sColArrayA



It is my imagination:



Or  are the keys of {object set} output as hash order (as per dictionary, required sort them first)

simply delimited by



{

1

3

5

6

7

2

4

}



but keys of an array output as numeric



[{

1

2

3

4

]]



get always



1

2

3

4



with sorting?






_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Livecode Json Arrays Key Sort

Bob Sneidar via use-livecode
On 03/29/2018 01:25 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

> put JSONToArray(tJson) into sColArrayA
>
>
>
> It is my imagination:
>
>
>
> Or  are the keys of {object set} output as hash order (as per dictionary, required sort them first)
>

https://quality.livecode.com/show_bug.cgi?id=19698
...maybe it's worth prodding Mark Waddingham (comment #10) that *now*
would be a good time to fix this.

--
  Mark Wieder
  [hidden email]

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Livecode Json Arrays Key Sort

Bob Sneidar via use-livecode
The fix is probably as easy as exposing the list type to LCS. Mark
mentioned that at the last LCG last year. Since the parser already uses the
list type and the engine has a list type internally it shouldn’t be that
hard.
On Thu, Mar 29, 2018 at 5:34 PM Mark Wieder via use-livecode <
[hidden email]> wrote:

> On 03/29/2018 01:25 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
> > put JSONToArray(tJson) into sColArrayA
> >
> >
> >
> > It is my imagination:
> >
> >
> >
> > Or  are the keys of {object set} output as hash order (as per
> dictionary, required sort them first)
> >
>
> https://quality.livecode.com/show_bug.cgi?id=19698
> ...maybe it's worth prodding Mark Waddingham (comment #10) that *now*
> would be a good time to fix this.
>
> --
>   Mark Wieder
>   [hidden email]
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode