Method of converting JavaScript objects to JSON strings and JSON back to objects using JSON.stringify() and JSON.parse()