Hello All!

I want to write boolean array in one line of JSON file., like here
"a": [false, true, true, false] or "a": [0, 1, 1, 0]


I do like this:

...
typedef bool my_arr[4];
...

QJsonArray json_bool_arr{my_arr[0], my_arr[1], my_arr[2], my_arr[3]};
json_book.insert("my_bool_array", json_bool_arr);




but in output JSON file I got 4 separate lines with values :

"my_bool_array": [
false,
true,
true,
false
],


How can I solve this issue ?