Unserialize an array

Hey All,

This should be pretty straight forward, but I can’t find any info on it at all. I just need to turn the following into json.

[
   {
      "gallery": "a:2:{i:0;s:4:"1887";i:1;s:4:"1882";}"
   }
]

Thanks for all the help, and the ongoing development of this project, it’s been amazingly helpful!

Sadly honestly no idea how that would work. Have never seen that format in my life or how that data would look unserialized. What is “serializing” like that?

It’s coming from an ACF field in Wordpress. It’s several image IDs. Perhaps I need to look at how they were entered in the first place. From what I could tell, I thought it was serialized PHP.

Ah interesting. You can try what they describe here:

Cool, I’ll look into that. Thanks again, you all rock!

You are welcome. Great to hear! Have fun!