Tyler Breland: Dinodex solution r1

revision from Dan Schepers code review
If `data` is already an array (I think it is...), just use `data.to_json`. Array already has what it needs.