example out of date
removed infinite toJSON loop...