Open
Description
Using the example definition in the README, it would be great (and familiar to Laravel users) to define nested JSON mappings using dot-notation.
class Schedule
{
use JsonSerialize;
#[Json('data.start')]
protected int $start;
#[Json('data.end')]
protected int $end;
public function __construct(int $start, int $end)
{
$this->start = $start;
$this->end = $end;
}
}
Metadata
Assignees
Labels
No labels