Sorry for the confusion.. I am indeed doing:<div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">$<span class="il" style="background-color:rgb(255,255,204)">json</span>(foo) := "{}";</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
To initialize the object every time.. As a side note, if I *don't* do that, I get a failure.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-Brett</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div class="gmail_quote">On Fri, Jan 4, 2013 at 12:49 AM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><tt>Hi, Brett!</tt><tt><br>
</tt><tt><br>
</tt><tt>The only problem I can see with your construction is that
you do not properly initialize the </tt><tt><tt>JSON</tt>
object: </tt><tt>$json(foo) = "{}". When the "=" operator is
used, the "{}" is interpreted as a simple string, not as a </tt><tt><tt>JSON</tt>
format. You should have used the ":=" which parses "{}" as a
JSON format and constructs a proper </tt><tt><tt>JSON</tt>
structure, that is populated afterwards with the desired value.</tt><tt><br>
</tt><tt>Anyway, I am not sure why you get that bogus "value".
When I replicated your code, the JSON module returns an error
when the $json(foo/bar) value is retrieved.</tt><tt><br><br></tt></div></div></blockquote></div></div>