If you need to map some JSON data to other JSON data arbitrarily then you can use Blackbriar
Add this line to your application's Gemfile:
gem 'blackbriar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install blackbriar
TODO: DO NOT USE THIS YET
The gem is available as open source under the terms of the MIT License.