rewritten functions using the javascript object notation (JSON)