|
static bool | TryDeserializeFromJson (string source, out DataToken result) |
| Creates a DataList or DataDictionary from JSON string input. If successful, this returns true and the result token will be either a DataDictionary or DataList. If not successful, this returns false and puts an error explaining what the issue was in the result token.
TODO: Add more information about the JSON format that is expected, as it has some quirks mentioned on the documentation page. More...
|
|
static bool | TrySerializeToJson (DataToken input, JsonExportType jsonExportType, out DataToken result) |
| Attempts to convert a DataDictionary or DataList into JSON string output. If successful, this returns true and the result token will be a string with the final Json. If not successful, this returns false and puts an error explaining what the issue was in the result token.
TODO: Add more information about the JSON format that is expected, as it has some quirks mentioned on the documentation page. More...
|
|
|
static bool | TryParseToken (string source, JsonType type, int index, out DataToken result) |
|
static bool | TryParseObject (string source, int index, out DataToken result) |
|
static bool | TryParseArray (string source, int index, out DataToken result) |
|
static bool | TryParseString (string source, ref int index, out DataToken result) |
|
static bool | TryParseNumber (string source, int index, out DataToken result) |
|
static bool | TryParseBool (string source, int index, out DataToken result) |
|
static bool | TryIdentifyType (string source, int index, out JsonType result) |
|
|
static bool | SerializeObject (DataDictionary dataDictionary, JsonExportType jsonExportType, StringBuilder builder, int indent, out DataToken error) |
|
static bool | SerializeArray (DataList dataList, JsonExportType jsonExportType, StringBuilder builder, int indent, out DataToken error) |
|
static void | AppendIndent (StringBuilder builder, int indent) |
|
static void | ScanObject (out bool success, string source, ref int index) |
|
static void | ScanArray (out bool success, string source, ref int index) |
|
static void | ScanString (out bool success, string source, ref int index) |
|
static void | ScanNumber (out bool success, string source, ref int index) |
|
static void | ScanBool (out bool success, string source, ref int index) |
|
static void | ScanNull (out bool success, string source, ref int index) |
|
static void | ScanUnknown (string source, ref int index) |
|
static void | SkipWhitespace (string source, ref int index) |
|
static bool | IsComplexObject (string source, int index) |
|
static int | GetStringEnd (string source, int index) |
|
static bool | IsComplexArray (string source, int index) |
|
static void | SkipToCharacter (string source, ref int index, char character) |
|
static bool | SkipToAnyCharacter (string source, ref int index, char[] characters) |
|
static string | UnEscapeCharacter (out bool success, string source, ref int index) |
|
static string | EscapeString (string input) |
|
static string | TrimWhitespace (string input) |
|
static | VRCJson () |
|
Definition at line 8112 of file VRCSDK3.cs.
static bool VRC.SDK3.Data.VRCJson.TryDeserializeFromJson |
( |
string |
source, |
|
|
out DataToken |
result |
|
) |
| |
|
static |
Creates a DataList or DataDictionary from JSON string input. If successful, this returns true and the result token will be either a DataDictionary or DataList. If not successful, this returns false and puts an error explaining what the issue was in the result token.
TODO: Add more information about the JSON format that is expected, as it has some quirks mentioned on the documentation page.
- Parameters
-
source | The JSON string to convert to json. |
result | The DataToken to populate with the deserialized data. Will be an error data token type when there is a failure. |
- Returns
- True if the JSON was successfully deserialized, false otherwise.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 8149 of file VRCSDK3.cs.
Attempts to convert a DataDictionary or DataList into JSON string output. If successful, this returns true and the result token will be a string with the final Json. If not successful, this returns false and puts an error explaining what the issue was in the result token.
TODO: Add more information about the JSON format that is expected, as it has some quirks mentioned on the documentation page.
- Parameters
-
input | The DataToken to convert to JSON. |
jsonExportType | The format to export the JSON in. |
result | The DataToken to populate with the serialized data. Will be an error data token type when there is a failure. Convert this to a string to get the final JSON. |
- Returns
- True if the JSON was successfully converted, false otherwise.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 8196 of file VRCSDK3.cs.