RJSONIO toJSON methods arg fix