Postgresql – extract nested value from json
I have a table with an id and the json column prod as the structure below { "1": { "product": "chain", "spare_part": [], "sp_done": 0 }, "2": { "product": "bike", "spare_part": { "1": {"part": "pedal", ...}, "2": {"part": "switch gear",…