> It is a fairly trivial exercise to loop through the rowset or selection and
> build column-based JSON yourself using the a4d.json lib.

True, it is a trivial exercise and you can even do it via Selection to Array
and $json->addArray, which actually creates column-based JSON.

But isn't A4D about elegance and efficiency in programming?

And wouldn't it be elegant, efficient and mega-cool, if you could transfer a
whole A4D RowSet to a searchable Javascript object with just 3 lines of
code?


$json := a4d.json.new(false)
$json->addRowSet($RowSet;...;columbased)
obj = jQuery.parseJSON('<%$json->write(false)%>');

;-)


Pete


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

Reply via email to