use jsonresponse instead of deprecated renderJSON