def converter(avroType): original = jsonDecoder(pool.avroType, jsonlib.loads(pool.init)) return jsonlib.dumps(jsonEncoder(avroType, original))
def __call__(self, state, scope, pos, paramTypes, x): return json.dumps(jsonEncoder(jsonNodeToAvroType(paramTypes[0]), x), separators=(",", ":"))