title: How to returns empty string instead of null in jbuilder views?
body: <p>I have simple jbuilder view</p>
  
  <pre><code>json.id pharmaceutic.id
  json.name pharmaceutic.name
  json.dosage pharmaceutic.dosage.name
  </code></pre>
  
  <p>When <code>pharmaceutic.dosage =&gt; nil</code></p>
  
  <p>My rendered json looks like below:</p>
  
  <pre><code>{"id":1,"name":"HerzASS ratiopharm","dosage":null}
  </code></pre>
  
  <p>I would like set up for all jBuilder views that when some attribute is <code>nil</code> it should be rendered as empty string.</p>
  
  <pre><code>{"id":1,"name":"HerzASS ratiopharm","dosage":""}
  </code></pre>
  
  <p>How to achieve that?</p>