Give all objects created a TO_JSON method