got rid of terminating newline in output of separateJSON