Fix close & delete JSON interfaces to match iOS version