Meta query with JSON value

That’s not json. You can’t put a semi-colon inside a javaScript Object like that.

That’s serialized-data. If you return that string & then call unserialize on it & then var_dump you can see what’s inside.

Also, see fuxia♦’s Answer Here for more info.

& to Maikal’s credit, you can use a meta_query in this situation, but you have to use the correct syntax…

I believe, it’s:

'compare' => 'LIKE', 
'value' => '"2"'

& Darren Felton’s Answer Here seems to verify that

tech