using JSON instead of dojo.json