Converts a Protobuf data representation into CFML data.
serializeProtobuf(data, schema [, messageType, queryFormat, useCustomSerialization, protoPath])
→ returns any
true
true
news = queryNew("id,title",
"integer,varchar",
[ {"id":1,"title":"Dewey defeats Truman"}, {"id":2,"title":"Man walks on Moon"} ]);
newsSchema = 'syntax = "proto3";
message News { int32 id = 1; string title = 2; }';
protobuf = serializeProtobuf(news, newsSchema);
writeDump(deserializeProtobuf(protobuf, newsSchema));
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.