How to have jBuilder return a hash

@robwise, Raphael doesn’t want attributes! as part of the README.md.

How about this way (not tested, just guessing):

 builder = Jbuilder.new do |props|
  props.lessons do
     props.partial! "api/v1/lessons/_lesson_list.json.jbuilder", 
                            lessons: @lessons}
  end
  props.courses do
     props.partial! "api/v1/courses/_course_list.json.jbuilder",
                           courses: @courses
  end
end
json = builder.target!

Target is defined here.