Rename #json() to #toJSON() where implemented.