JSON Dictionary Parser Plugin

Plugin source location: <serge_root>/lib/Serge/Engine/Plugin/parse_json_keyvalue.pm

This plugin is used to parse plain JSON objects (dictionaries) in "key" : "value" format.

Note that this parser does full JSON parsing/validation, and thus can be used on JSON only. If you have dictionaries in arbitrary JavaScript file, use the parse_js plugin instead. If your JSON has an arbitrary structure, see the parse_json plugin that gives more flexibility on what nodes to translate.

In case JSON format validation fails, the plugin can send an error report to specified recipients. If no email settings are provided, it will simply report the error in the console output.

Code Examples

{ "key1": "string", "key2": "string", "key3": "string", //... }