Added a simple #to_json method