JSON.stringify() JSON.parse() toJSON() var person={“cardId”:”546651353435″}; console.log(JSON.stringify(person));