Fix test issue-4016.rs with the json API change