Removes extra newline in JsonTest