New to Dojo, new to json. Most likely not a good combination...
Recommendations are to use json-comment-filtered for doing json calls from client-server.
I am a back-end perl programmer mostly... the web stuff is fun but not my main calling. I'm using the CPAN's JSON parse/converter.
Any pointers would be appreciated.
Current Perl pseudo code is:
use JSON; # Code to do SQL lookup while ($pointer = $sth->fetchrow_hashref) $data .= $json->objToJson($pointer) print $cgi->header(); print $data;

I personally would just use
I personally would just use plain json, and you can turn off the nagging that dojo does by setting djConfig.usePlainJson=true.
If you do this though, then you will want to take appropriate steps to protect yourself from Cross Site Request Forgeries, and make sure you are properly scrubbing any user input that is part of your output.
If you still wanted to do the commented thing in perl, I think this will do (I"m very rusty with Perl):