Search code examples
phpjsonwordpressjoomla

Does it count as JSON?


Working with Joomla and Wordpress CMSs, I found weird rows in both of them, for example WordPress has a row in wp_options table called wp_user_roles which filled with a:8:{s:13:"administrator";a:2:{s:4:"name";s:13:"Administrator"... which i don't call it JSON but obviously its something very similar, I just want to know what it is, also I couldn't find any function to parse it in php easily.


Solution

  • This is not JSON, but serialized

    serialize
    unserialize

    As commented by Nigel Ren, in this Question (How to use php serialize() and unserialize()) serialize and unserialize are explained