Use JSON request for /rest/sync.