JRegistryFormatJSON::stringToObject

Parse a JSON formatted string and convert it into an object.

If the string is not in JSON format, this method will attempt to parse it as INI format.