implement and modify as_json methods for action, user and user_language models