Class MiniJson
Extension class for MiniJson to Encode and Decode JSON.
Inherited Members
Namespace: UnityEngine.Purchasing
Syntax
public class MiniJson
Methods
JsonDecode(String)
Converts an string into a JSON object
Declaration
public static object JsonDecode(string json)
Parameters
| Type | Name | Description |
|---|---|---|
| String | json | String to convert to JSON object |
Returns
| Type | Description |
|---|---|
| Object | JSON object |
JsonEncode(Object)
Converts an object into a JSON string
Declaration
public static string JsonEncode(object json)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | json | Object to convert to JSON string |
Returns
| Type | Description |
|---|---|
| String | JSON string |