Make JSON output work decently.
Getting commas right.