Convenient Append to JSON Array

Idea created by Chris Irvine on Nov 13, 2017

    It would be great if JSON functions were further enhanced to streamline the assembly of data into a JSON Array.


    Currently, it is necessary to manually compute an array index as you construct the JSON. Much of the time, this index variable could be simply omitted. If there was a new append() function or operator [], then we could write simple and straight forward loops, such as...



        Set Variable [ $people ; Value: JSONSetElement ( $people ; "[]" ; Person::Name ; JSONString ) ]

        Go to Record/RequestPage [ Next ; Exit after last: On ]

    End Loop