Serializes data into a JSON format using AVRO schema.