monitor:JSON: Add JSON variant type handler
Runtime determination of a configured JSON entry's data type that's
parsed into a variant needs a special handler for each type that the
variant could contain. This uses the JSON entry's determined type unless
an optional type is given to parse it as that data type, which must be
supported in the variant the JSON entry's value is stored in.
Tested:
Exception thrown when an unsupported type is configured
Supported types are parsed and returned within the variant
No configured type given results in returning JSON determined type
Change-Id: I3e5be5b369eb53fec2025ec19f235df927fbb3d8
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
1 file changed