The Addon will provide functionality to format or to get data from JSON messages. The code is based on JSON.net (http://www.newtonsoft.com/json) and is open source under the MIT license. 



Functions


PrettyJSON(input As String, Optional removeMongoDBtypes As Boolean = True) As String

GetJSONArrayToken(input As String, token As String) As String

GetJSONObjectToken(input As String, token As String) As String

GetJSONToken(input As String, token As String) As String

GetJSONTokens(input As String, token As String) As String

JSON2XML(input As String) As String

XML2JSON(input As String) As String


JSONUnixNumber2Date(numberAsMilliseconds As Long) As Date

Dictionary2JSON(input As Dictionary) As String

JSON2Dictionary(input As String, 

                             Optional UseExtendedJSONCheck As Boolean = True,

                             Optional CheckForNameValuePair As Boolean = False,

                             Optional AddJSONasItem As Boolean = False) As clsDictionary

AddJSONasItem adds the JSON value to the dictionary item as an extra field (only on base level). This way the JSON value can be shown later in total for analyse.

JSON2DictionaryFast(input As String, Optional threads As Integer = 8,

                                    Optional AddJSONasItem As Boolean = False) As clsDictionary


AddJSONasItem adds the JSON value to the dictionary item as an extra field (only on base level). This way the JSON value can be shown later in total for analyse.


JSONAdd(element As Object, data As Object, 

                 Optional propertyName As String = "") As Object

This function is added because the normal add method for JObjects is limited in the IT-Tool parser.

GetJSONArray(input As String) As JArray

See Newtonsoft JSON.NET library for methods and properties.

GetJSONObject(input As String) As JObject

See Newtonsoft JSON.NET library for methods and properties.

GetJSONToken(input As String) As JToken

See Newtonsoft JSON.NET library for methods and properties.



Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites