convert type object to string javascript\ code example Example: cast object to string javascript var myJSON = JSON.stringify(obj);