Bug fix for view.detail
view.detail should work now. The function returns a json in the
format specified by the api.