Is is possible to call a function, like `now()` when inserting/updating a JSONB column in Postgres?

I was thinking something like the following where `time` would be set to the return value of `now()`:
`SELECT '{"value": 5, "time": now()}'::JSONB;`