Accept JSON from R