Hi, you could try to replace the line feeds before writing the data to the file. If you use the toJson() methode, check QByteArray::replace().

By the way, your typedef line looks weird in combination with your json_bool_arr variable. Are you sure that you want/need a typedef there?

Ginsengelf