Ok, the only thing I can think of, and what I initially thought was causing this is the data inside some of the key/value pairs. In particular the description.
Example,
This is what is inside some of the items descriptions:
"DESCRIPTION": "▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\\n Playing bass 'Barry'. \\n\\nThe Band\\n EXAMPLE\\n\\n\"an underground party and so on"
I then pasted this inside the $json = “” on the page which returned NULL.
I then removed some of the " and ’ which was causing the code to open and close, in particular ‘Barry’ which broke the flow of the json.
It then displayed the json
So I think it might have something to do with the quotation marks and apostrophes causing the conflict and resulting in a NULL value…
Is there a way to check this or force and replace/decode function so the quotation marks and apostrophes don’t break the copy? Likewise for any other special characters?
Barry