Implement to_json for models and collections