I have single Column entry "Custom Field" and it's contents can grow and shrink. The structure of said column is:
{"10": {"name": "", "type": "Text", "value": ""}, "11": {"name": "", "type": "Text", "value": ""}, "12": {"name": "", "type": "Date", "value": ""}, "13": {"name": "", "type": "Text", "value": ""}, "14": {"name": "", "type": "Date", "value": "2023-02-08 00:00:00"}, "15": {"name": "2:", "type": "Text", "value": ""}, "16": {"name": "3:", "type": "Text", "value": ""}, "17": {"name": "4:", "type": "Text", "value": ""}, "18": {"name": "5:", "type": "Text", "value": ""}}
I would like to find a way to pull the Bolded date "2023-02-08" from the list using the number values "10,11, 12,13,14, etc." This way if I have any data inserted I can delaminate by the assigned position rather than using say "{". The issue I'm concerned about it if there is a value that matches my delaminated value would ruin my query and provide the wrong data to an export. If there is a better way of doing this, please let me know.
Here's the query I'm using right now:
NULLIF(SUBSTRING(SUBSTRING_INDEX(po.customfields,',',-15),62,10), '"}, "15": ') as "Date"