Converts an Avro data representation into CFML data.
deserializeAvro(data, readerSchema [, strictMapping, useCustomSerialization])
→ returns any
true
true
news = queryNew("id,title",
"integer,varchar",
[ {"id":1,"title":"Dewey defeats Truman"}, {"id":2,"title":"Man walks on Moon"} ]);
newsSchema = '{
"namespace": "my.example",
"type": "record",
"name": "News",
"fields": [ {"name":"id","type":"int"}, {"name":"title","type":"string"} ]
}';
avro = serializeAvro(news, newsSchema);
writeDump(deserializeAvro(avro, newsSchema));
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.