move datasets_as_json to concern