Pruned empty files, moved JSON files to a new dir, updated MSVC solution files
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@103 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
26
libsecondlife-cs/JSON/JSONFacade.cs
Normal file
26
libsecondlife-cs/JSON/JSONFacade.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
|
||||
namespace Nii.JSON
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for JsonFacade.
|
||||
/// </summary>
|
||||
public sealed class JsonFacade
|
||||
{
|
||||
/// <summary>
|
||||
/// Parse JSON formatted string and return a Hashtable
|
||||
/// </summary>
|
||||
/// <param name="sJSON"></param>
|
||||
/// <returns></returns>
|
||||
public static IDictionary fromJSON(string sJSON)
|
||||
{
|
||||
JSONObject jsob = new JSONObject(sJSON);
|
||||
IDictionary idict = jsob.getDictionary();
|
||||
return idict;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user