var jsonStr = '{"number":"number","size_x":"size_x","size_y":"siz e_y","num_1":"num_1"}'; var objFromJsonStr = JSON.parse(jsonStr); for (objKey in objFromJsonStr) { alert(objKey + ': ' + objFromJsonStr[objKey]); }