<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi Brett,<br>
      <br>
      Empty string is not a valid json string....maybe "{}".<br>
      Check the grammar on <a class="moz-txt-link-freetext" href="http://www.json.org/">http://www.json.org/</a> and a validator on&nbsp;
      <a class="moz-txt-link-freetext" href="http://jsonlint.com/">http://jsonlint.com/</a><br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 02/10/2013 07:39 PM, Brett Nemeroff wrote:
    <blockquote
cite="mid:CAPwC5wyNJqCb_o0-NNPJFh0QdEtHuFNHPi=hCJcjo2_Cqqxq5A@mail.gmail.com"
      type="cite">Hey all,
      <div>I think I see a bug in the JSON module; but it might just be
        a "feature" of JSON.</div>
      <div><br>
      </div>
      <div>Seems that when I assign an empty string to a JSON element,
        it's storing it as NULL. So for example:</div>
      <div><br>
      </div>
      <div>$json(object/element) = '';</div>
      <div><br>
      </div>
      <div>If I print that, I get &lt;null&gt; in an xlog.</div>
      <div><br>
      </div>
      <div>Is this expected? I'd really like to be able to store empty
        strings.</div>
      <div><br>
      </div>
      <div>Thanks!</div>
      <div>-Brett</div>
      <div><br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>