Fix JSON error message spacing on some APIs