Added to and from JSON prototypes but only if JSON exists