avro-parser

1.0.1 • Public • Published

Simple Avro JSON parser for node

Installation:

npm install avro-parser

Usage:

var avroParser = require('avro-parser');
var schema1 = <LoadSchema here> //Get schema from some source
var schema2 = <LoadSchema here> //Get schema from some source
var plainJson = {propetyX: 'value'};
 
//Load all relevant schemas into the parser
avroParser.loadSchema(schema1);
avroParser.loadSchema(schema2);
 
//Parse some json
var avroJSON = avroParser.jsonToAvroJson(plainJson, 'someSchemaName');

Readme

Keywords

Package Sidebar

Install

npm i avro-parser

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • christianbak