git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@393 52acb1d6-8a22-11de-b505-999d5b087335
27 lines
621 B
C#
27 lines
621 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
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 dictionary
|
|
/// </summary>
|
|
/// <param name="sJSON"></param>
|
|
/// <returns></returns>
|
|
public static Dictionary<string, object> fromJSON(string sJSON)
|
|
{
|
|
JSONObject jsob = new JSONObject(sJSON);
|
|
Dictionary<string, object> idict = jsob.getDictionary();
|
|
return idict;
|
|
}
|
|
}
|
|
}
|