JSON result as an enum