<div dir="ltr">Looks like 0.11:<div><br></div><div><div>ubuntu@ip-172-31-27-53:~$ apt-cache show libjson0</div><div>Package: libjson0</div><div>Priority: required</div><div>Section: libs</div><div>Installed-Size: 29</div><div>

Maintainer: Ubuntu Developers &lt;<a href="mailto:ubuntu-devel-discuss@lists.ubuntu.com">ubuntu-devel-discuss@lists.ubuntu.com</a>&gt;</div><div>Original-Maintainer: fabien boucher &lt;<a href="mailto:fabien.dot.boucher@gmail.com">fabien.dot.boucher@gmail.com</a>&gt;</div>

<div>Architecture: amd64</div><div>Source: json-c</div><div>Version: 0.11-3ubuntu1.2</div><div>Depends: libjson-c2</div><div>Filename: pool/main/j/json-c/libjson0_0.11-3ubuntu1.2_amd64.deb</div><div>Size: 1080</div><div>
MD5sum: 9546da6d1568b8f0e802490ebe080e8e</div>
<div>SHA1: a9cb6f1465db98bf67dc17e2b6fda5e6885701ac</div><div>SHA256: a2106bff663291e55f9a3388285b62dce98325246c1c5ad3b8d2e3fa270ac094</div><div>Description-en: JSON manipulation library (transitional package)</div><div>
 This is a transition package that can be safely removed once no</div>
<div> package depend on it.</div><div>Description-md5: 371ccf272cd2c882d38633a743e58c84</div><div>Multi-Arch: same</div><div>Homepage: <a href="https://github.com/json-c/json-c/wiki">https://github.com/json-c/json-c/wiki</a></div>

<div>Bugs: <a href="https://bugs.launchpad.net/ubuntu/+filebug">https://bugs.launchpad.net/ubuntu/+filebug</a></div><div>Origin: Ubuntu</div><div>Supported: 5y</div><div>Task: minimal</div><div><br></div><div>Package: libjson0</div>

<div>Priority: required</div><div>Section: libs</div><div>Installed-Size: 29</div><div>Maintainer: Ubuntu Developers &lt;<a href="mailto:ubuntu-devel-discuss@lists.ubuntu.com">ubuntu-devel-discuss@lists.ubuntu.com</a>&gt;</div>

<div>Original-Maintainer: fabien boucher &lt;<a href="mailto:fabien.dot.boucher@gmail.com">fabien.dot.boucher@gmail.com</a>&gt;</div><div>Architecture: amd64</div><div>Source: json-c</div><div>Version: 0.11-3ubuntu1</div>

<div>Depends: libjson-c2</div><div>Filename: pool/main/j/json-c/libjson0_0.11-3ubuntu1_amd64.deb</div><div>Size: 1018</div><div>MD5sum: 690daefd9e8225578ad2b89447c91bc1</div><div>SHA1: 49f1ef004eb7a141a55d4398a4bcacc8aff4643c</div>

<div>SHA256: 43cc2f5d2329653052f70e24854587985fdc7b4f9871d175bfd10fd072f596ce</div><div>Description-en: JSON manipulation library (transitional package)</div><div> This is a transition package that can be safely removed once no</div>

<div> package depend on it.</div><div>Description-md5: 371ccf272cd2c882d38633a743e58c84</div><div>Multi-Arch: same</div><div>Homepage: <a href="https://github.com/json-c/json-c/wiki">https://github.com/json-c/json-c/wiki</a></div>

<div>Bugs: <a href="https://bugs.launchpad.net/ubuntu/+filebug">https://bugs.launchpad.net/ubuntu/+filebug</a></div><div>Origin: Ubuntu</div><div>Supported: 5y</div><div>Task: minimal</div></div><div><br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Tue, Jul 8, 2014 at 10:40 AM, Vlad Paiu <span dir="ltr">&lt;<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Hello,<br>
      <br>
      There have been some recent changes to the JSON module in terms of
      parsing the error codes ( some old code got deprecated on versions
      &lt; 0.9 ) and we had to do some compile-time detection of the
      version of libjson used ( since the JSON library only exports a
      version macro starting with 0.10 ), so this might be the source of
      your issues. <br>
      <br>
      What is the version of the libjson do you currently have installed
      on your system ? So far tested with 0.9, 0.10 and 0.12 and does
      not seem to replicate.<br>
      <br>
      Best Regards,<br>
      <pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre><div><div class="h5">
      On 08.07.2014 19:57, Kurtis Heimerl wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">I bumped up the debug, seeing this in the logs:
        <div><br>
        </div>
        <div>
          <div>Jul  8 16:51:47 SERVERNAME /usr/sbin/opensips[30188]:
            ERROR:json:pv_set_json: Error parsing json: success</div>
          <div>Jul  8 16:51:47 SERVERNAME /usr/sbin/opensips[30188]:
            ERROR:core:do_assign: setting PV failed</div>
          <div>Jul  8 16:51:47 SERVERNAME /usr/sbin/opensips[30188]:
            ERROR:core:do_assign: error at line: 151</div>
        </div>
        <div><br>
        </div>
        <div>Looks like it thinks the json isn&#39;t parsing right, but the
          config is still dead simple...</div>
        <div><br>
        </div>
        <div>
          <div>$json(k) := &quot;[1,2]&quot;;</div>
          <div>xlog(&quot;L_ERR&quot;,&quot;Kurtis2 $json(k)&quot;);</div>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Jul 8, 2014 at 9:48 AM, Kurtis
          Heimerl <span dir="ltr">&lt;<a href="mailto:kheimerl@cs.berkeley.edu" target="_blank">kheimerl@cs.berkeley.edu</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Huh. I tried the default json code too (<a href="http://lists.opensips.org/pipermail/devel/2009-September/004177.html" target="_blank">http://lists.opensips.org/pipermail/devel/2009-September/004177.html</a>) <br>


              <br>
              <div>   $json(obj1) := &quot;{}&quot;;       # initialize an empty
                JSON object</div>
              <div>   $json(obj1/key) = &quot;value&quot;; #replace or insert the
                (key,value)</div>
              <div>                              #pair into the json
                object;</div>
              <div>   xlog(&quot;$json(obj1)&quot;);       # print the serialized
                version of the object   </div>
              <div><br>
              </div>
              <div>Which still doesn&#39;t work (printing null), so
                something deeply screwed up. </div>
              <div><br>
              </div>
              <div>As far as versions, I&#39;m running 1.11.2-notls
                (x86_64/linux), according to opensips. This is out of
                the default opensips debian repo, as is the json module
                itself. </div>
              <div><br>
              </div>
              <div>Anyone have any idea why the json module would be
                failing like this? It doesn&#39;t seem like an issue with my
                config. </div>
            </div>
            <div>
              <div>
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">On Mon, Jul 7, 2014 at 11:28
                    PM, Răzvan Crainea <span dir="ltr">&lt;<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,
                      Kurtis!<br>
                      <br>
                      I&#39;ve just run your test and the output seems ok:<br>
                      Kurtis [ 1, 2 ]<br>
                      Are you sure there is no other function between
                      those two lines that could delete the json? Also,
                      what version of OpenSIPS are you using?<br>
                      <br>
                      Best regards,<br>
                      <br>
                      Razvan Crainea<br>
                      OpenSIPS Core Developer<br>
                      <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>
                      <div>
                        <div><br>
                          <br>
                          On 07/08/2014 03:01 AM, Kurtis Heimerl wrote:<br>
                        </div>
                      </div>
                      <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                        <div>
                          <div>
                            Hey All,<br>
                            <br>
                            I seem to be having some very simple issues
                            with the json module. The<br>
                            following code in my config:<br>
                            <br>
                            $json(k) := &quot;[1,2]&quot;;<br>
                            xlog(&quot;L_ERR&quot;,&quot;Kurtis $json(k)&quot;);<br>
                            <br>
                            Is producing the following output:<br>
                            <br>
                            Jul  7 23:59:00 NAME
                            /usr/sbin/opensips[6379]: Kurtis2
                            &lt;null&gt;<br>
                            <br>
                            This looks to be as simple as I can get a
                            json command, but I can&#39;t<br>
                            figure out why it&#39;s null. Changing the  &quot;:=&quot;
                            to a &quot;=&quot; and the &quot;[1,2]&quot; to<br>
                            a &quot;4&quot; works, but that&#39;s just a normal
                            variable. Anyone know what&#39;s up?<br>
                            <br>
                            Thanks!<br>
                            <br>
                            <br>
                          </div>
                        </div>
                        _______________________________________________<br>
                        Users mailing list<br>
                        <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                        <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                        <br>
                      </blockquote>
                      <br>
                      _______________________________________________<br>
                      Users mailing list<br>
                      <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                      <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>