# Trying to produce JSON that is consumable by Dojo

**URL:** <https://www.ruby-forum.com/t/trying-to-produce-json-that-is-consumable-by-dojo/161529>\
**Category:** Rails\
**Created:** [February 27, 2009, 4:42am UTC](https://www.ruby-forum.com/t/trying-to-produce-json-that-is-consumable-by-dojo/161529 "2009-02-27T04:42:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sktib](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@sktib](https://www.ruby-forum.com/u/sktib)\
**Post date:** [February 27, 2009, 4:42am UTC](https://www.ruby-forum.com/t/trying-to-produce-json-that-is-consumable-by-dojo/161529/1 "2009-02-27T04:42:55Z")

</div>

Folks,

When I get data in my test Rails app through a model and convert it to  
JSON e.g. Meal.find(:all).to\_json, the JSON format I get seems to be  
very different from what the dojo.data.ItemFileReadStore expects.

How can I convert the to\_json output in Rails to a format consumable by  
dojo.data.ItemFileReadStore to be displayed in dijit.form.ComboBox? Is  
there a plugin out there that can help me with this?

Thanks for your help.

-S
