Gem to build json error for your api.