title: Rails Controller Modify JSON Response
body: <p>I have this method in my controller:</p>
  
  <pre><code># GET /bios/1
  # GET /bios/1.json
  
  def show
   if member_session?
     @member = MemberPresenter.new(@bio.member)
     # I need something here to add a flag to the json response to signal this is a member session.
   else
    @member = MemberPresenter.new(@bio.member)
   end
  end
  </code></pre>
  
  <p>I need to modify the json response to return something like:</p>
  
  <p>{ member: @member, member_session: true }</p>
  
  <p>Thanks in advance! </p>