remove use of Object.toJSON() if it exists since it is overridden by some frameworks that don't stringify JSON correctly. @brianr