here.platform.schema.json_parser module
here.platform.schema.json_parser module
HERE Platform Json Parser module
class here.platform.schema.json_parser.JsonParser(schema_pkg_file: str | Path | BytesIO)
Bases: Parser
A class for parsing Json data of a catalog layer partition.
parse_message(message: bytes) Message | dict
Parse a message and returns the corresponding partition class instance.
Parameters:
message – message received as blob
Returns:
parsed message
serialize_bytes(data: Message | dict) bytes
Parse a Json message and returns the bytes.
Parameters:
data – Json message
Returns:
bytes
validate_json_schema(data: dict)
Validates the given json instance against the defined schema.
Parameters:
data – json instance to be validated