Core Concepts
EasyJson is built around clean path queries and seamless struct serialization.
Dot and Bracket Path Notation#
Instead of drilling down through nested JSON objects manually, you write simple path strings:
- Object Fields: Use dots to navigate child keys (
stats.health,game.settings.volume). - Array Elements: Use brackets to access items by zero-based index (
items[0],inventory[2].count). - Deep Nesting: Combine both freely (
characters[0].equipment.weapon.damage).
Wildcard Struct Serialization#
One of EasyJson's most powerful features is Wildcard Struct Conversion:
- Struct To JSON Asset: Takes any Blueprint Struct and converts all properties into matching JSON fields.
- JSON Asset To Struct: Reads JSON fields and fills your Blueprint Struct variables automatically with matching types.
Click to expand