JSON expected, but getting error "view missing"