having JSON column in table I can selected nested properties like...
SELECT '{"monday": 123}'::json->>'monday'; --> returns 123
...but if I want to select properties dynamically, it doesn't work
SELECT '{"monday": 123}'::json->>to_char(now() AT TIME ZONE 'Pacific/Yap', 'day'); --> returns null
Is is even possible to achieve?
Thank you!