Remove newline before closing curly brace in JSON output.