Fixed jsonresponse to handle null result object