JsonConfigParser
A helper class for parsing JSON configuration with error handling.
Parameters
The JSON object containing the configuration.
Functions
Parses an optional Map<String, String> field from the JSON object.
Parses a scope set from the JSON object, accepting either a comma-separated string or an array of strings. If the field is a string, it is split on commas to create the set. If the field is an array, each element must be a string. If the field is missing, a JsonConfigError.MissingRequiredField is thrown. If the field is present but not a string or array of strings, a JsonConfigError.InvalidType is thrown.
Parses a timeout value in milliseconds from the JSON object. If the field is missing, returns the provided default value. If the field is present but not a long integer, a JsonConfigError.InvalidType is thrown.