Is there any tool able to create an AVRO schema from a 'typical' JSON document.
For example:
{
"records":[{"name":"X1","age":2},{"name":"X2","age":4}]
}
I found http://jsonschema.net/reboot/#/ which generates a 'json-schema'
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://jsonschema.net#",
"type": "object",
"required": false,
"properties": {
"records": {
"id": "#records",
"type": "array",
"required": false,
"items": {
"id": "#1",
"type": "object",
"required": false,
"properties": {
"name": {
"id": "#name",
"type": "string",
"required": false
},
"age": {
"id": "#age",
"type": "integer",
"required": false
}
}
}
}
}
}
but I'd like an AVRO version.