Fix empty set parsing bug in JSON and JSON-VERBOSE mode.