• Error - Attempt to access an uninitialized dynamic array

    By Matt Shelock 2 decades ago

    occurs when JSON string contains an empty array e.g. "attendees":[]



    solution is to change the following line in the Function parseArray()



    parseArray = resultArr



    to



    If arrayItemCount = 0 Then

    parseArray = &quot;null&quot;<br/>
    

    Else

    parseArray = resultArr<br/>
    

    End If