Can't get hydration of nested json-field data to work

I am having trouble getting a form with nested JSON fields to hydrate properly.
The data is correctly saved to the database.
If I dd() the state in the afterStateHydrated callback, it shows the correct value, however the form fields remain empty.

What am I doing wrong?

field looks like this:
TextInput::make('options.maxDepth')
    ->numeric(),


data saved to db:
{"maxDepth":3}
Was this page helpful?