Change to_json to make it easier to get JSON representation from super classes