Avro Message

Generate example payloads from an Avro schema

Paste an Avro record schema to produce a JSON message with nested records and enums populated. Useful for Kafka smoke tests and contract fixtures.

How the sample is built

  • Primitive fields use sane defaults for their type
  • Enum fields use the first symbol
  • Unions pick the first non-null branch
  • Arrays get one recursively generated element

What to add next

The generated message is a good starting fixture. Extend it with edge cases — empty arrays, null branches, boundary numbers — before shipping it into regression tests.

Pairs well with

Jump to other JSON2Class utilities that naturally follow this one.

JSON to Java

Generate Java DTOs and review validation-oriented API models.

JSON to Kotlin

Review nullability and Kotlin data class structure quickly.

JSON Formatter

Format sample payloads before sending them back into the converter.