The schemas are fine, but the JSON snippet isn't a valid instance of
the second schema.
In the default JSON encoding for Avro, you have to include the name of
the record as an object field[1].
For example, given test_schema_0.avsc with your first schema and
test_schema_1.avsc as your second,
Hi there,
First, please look at the following schema
{"name": "user_record",
"namespace": "com.user",
"type": "record",
"fields" : [
{"name": "name", "type": "string"},
{"name": "id", "type": "long"}
]}
and the following JSON:
{"name": “Foo", “id": 42}
When I