how do i turna simple string variable into an array using json code example Example: convert json object to array javascript var as = JSON.parse(jstring);