fixes(asJSON): the onAboutToJSON method is now obsolete