Angular.js - using angular.toJSON() function

A simple Angular.js example of converting a javascript object to a JSON.