Skip to content

Instantly share code, notes, and snippets.

View anirudha's full-sized avatar
💭
building....

Anirudha (Ani) Jadhav anirudha

💭
building....
View GitHub Profile
@andry1
andry1 / gist:2925651
Created June 13, 2012 18:24
avro-c code to dump out schema and records from avro datafile as json
#include <stdio.h>
#include <avro.h>
int main(int argc, char **argv) {
avro_file_reader_t reader;
avro_writer_t stdout_writer = avro_writer_file_fp(stdout, 0);
avro_schema_t schema;
avro_datum_t record;
char *json=NULL;