From 87ac46c1c5d7235aba8905e98f4819a3bf54c563 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Mon, 29 Sep 2008 17:47:17 +0000 Subject: From: rob smart (smartrob@uk.ibm.com) minor fixes to osParseJSON. --- .../Shared/Api/Implementation/OSSL_Api.cs | 28 +++++++++++++++++----- 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 536bdd2..cd17734 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -749,13 +749,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api string currentKey=null; Stack objectStack = new Stack(); // objects in JSON can be nested so we need to keep a track of this Hashtable jsondata = new Hashtable(); // the hashtable to be returned - + int i=0; try { // iterate through the serialised stream of tokens and store at the right depth in the hashtable // the top level hashtable may contain more nested hashtables within it each containing an objects representation - for (int i=0;i