Encode an object as JSON, given titus.datatype.AvroType.
dicts, lists, strings, numbers, True, False, None
the JSON object in Python encoding