Hi,

I've set up a test.

$formJSON contains the following string:  [{"name":"testField1","value":"Test 
AJAX Text1"},{"name":"testField1","value":"Test AJAX Text2"}]

This looks like an array of two objects.

When I use the parse command:
$formCollection:=a4d.json.parse($formJSON)

$formCollection is returned as a longint with a value of zero

What doesn't work:

$fieldName:=$formCollection{1}{"name"}
$fieldName:=$formCollection{"name"}{1}
$fieldName:=$formCollection{"name"}
$fieldName:=$formCollection{1}{1}


Any help would be appreciated.


Tom



On Nov 14, 2012, at 10:53 PM, Aparajita Fishman wrote:

>> Once I use a4d.json.parse, how do I unpack the collection into names and 
>> values?
> 
> If the JSON is an object, you get back a collection, which *is* names and 
> values.
> 
> Regards,
> 
>   Aparajita
>   www.aparajitaworld.com
> 
>   "If you dare to fail, you are bound to succeed."
>   - Sri Chinmoy   |   www.srichinmoy.org
> 
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/
> 
> 

_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to