<div dir="ltr">OpenSim has a suite of ossl functions for handling JSON already (<a href="http://opensimulator.org/wiki/JsonStore_Module">http://opensimulator.org/wiki/JsonStore_Module</a>). <div><br></div><div>If I get a chance, I'll take a look at these fns & see how hard it would be to implement them. The idea of parsing the json on every operation seems rather awkward (the joys of having no data structures in the language). And... probably a good idea to compare the accessors in the OSSL functions with these expressions.<div>
<br></div><div style>--mic</div><div style><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 15, 2013 at 3:29 AM, R.Gunther <span dir="ltr"><<a href="mailto:rigun@rigutech.nl" target="_blank">rigun@rigutech.nl</a>></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">
<br>
Secondlife comes with more new lsl commands, the are maby
intressting<br>
To implement at soem point in opensim. or sooner.<br>
<ul>
<li><strong>list llJson2List(string json)</strong> – converts the
top level of the json string to a list.</li>
<li><strong>string llList2Json(string type, list values)</strong>
-<strong> </strong>
<ul>
<li>Type is JSON_ARRAY or JSON_OBJECT</li>
<li>Converts either a strided list of key:value pairs to a
JSON_OBJECT or a list of values to a JSON_ARRAY</li>
</ul>
</li>
<li><strong>string llJsonGetValue(string json, list specifiers)</strong>
– gets the value indicated by spcifiers from the json string.</li>
<li><strong>string llJsonSetValue(string json, list specifiers,
string value)</strong> – returns a new json string that is the
json given with the value indicated by specifiers set to value</li>
<li><strong>string llJsonValueType(string json, list specifiers)</strong>
– returns the type constant for the value in json indicated by
specifiers.</li>
</ul>
<br>
</div>
<br>_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br></blockquote></div><br></div>