titus.datatype.jsonDecoder

titus.datatype.jsonDecoder(avroType, value)[source]

Decode a JSON object as a given titus.datatype.AvroType.

Parameters:
  • avroType (titus.datatype.AvroType) – how we want to interpret this JSON
  • value (dicts, lists, strings, numbers, True, False, None) – the JSON object in Python encoding
Return type:

dicts, lists, strings, numbers, True, False, None

Returns:

an object ready for PFAEngine.action