If I understand you correctly than you want to store JSON in MySQL. I would highly recommend NOT to do that in an RDBMS as you’ll lose all the benefits of a relational system. Is there any reason that you don’t want to create separate tables for your data? It is possible, yes, via a TEXT field in MySQL but if you really want to store “nested documents” you should take a look at MongoDB or another noSQL database. They are made to store data as JSON. There’s a nice extension out there for Yii called MongoDB Suite