How to convert Text Object to Array?

i have Text object and i want result like below.

?"{code = "plug"; date_added = +1;}" // Text Object
{code = "plug"; date_added = +1;} // Want Result