json_builder icon indicating copy to clipboard operation
json_builder copied to clipboard

Rails provides an excellent XML Builder by default to build RSS and ATOM feeds, but nothing to help you build complex and custom JSON data structures. JSON Builder is here to help.

Results 14 json_builder issues
Sort by recently updated
recently updated
newest added

When running tests on a project depending on json_builder some warnings are raised: This is because with a recent rake (>=11.0), ruby warnings are now on by default. ``` /Users/lloeki/.gem/ruby/2.3.4/gems/json_builder-3.1.7/lib/json_builder/compiler.rb:70:...

Rails 4 .version didn't return string so Template can't bind them self

I have a situation where, based upon certain parameters, I would include certain parts of the object in the response, but it seems this cannot be done with json_builder. ex:...

Is it possible to generate a ruby object (either a nesting of arrays or hashes or both) from a json_builder template? I want to reuse my existing json_builder templates to...

I've upgraded my Rails 2.3.18 app to work with Ruby 2.1.0 ( requires a couple monkey patches described here http://djellemah.com/blog/2013/02/27/rails-23-with-ruby-20/ ) json_builder templates are now throwing the following error: undefined...

How would I work with partials and json_builder to avoid duplication? With builder I can do something like: ``` xml.destinations do @destinations.each do |destination| xml 'destination', :object => destination) end...

Feature Request

There are a bunch of control characters which users routinely enter such as `"\v"`, `"\f"`, `"\u0003"` and even `"\b"` which `json_builder` fails to escape resulting in an invalid output that...

How would i make this work with rails 2.3.8? In the example, you used respond_with which doesn't exist with rails 2.3.8 version.... if I use respond to, it doesn't call...

I have a list of prices for a product ``` ruby prices = [ #, #, #, ] ``` and want to render it like this: ``` json "product": {...