Add scope and override to_json