So I'm working with the wp rest api and the wp rest controller plugin. I have a music theme that's doing some interesting things. When i make the API call one of the properties i get is this:
Use WP's functions for serialization:
The gist: Check if your array item is a serialized string (
is_serialized_string), and then
maybe_unserialize it. Then you can evaluate the result to see if it's in a format you're expecting (such as an array).