JSON output for named entities