So I've added the error type check:
if (json_array_append_new(
json_arr,
json_pack("{s:s,s:s,s:s}", "called_number",
phone_numbers[row_num]
->called_number,
"seen_last",
phone_numbers[row_num]->seen_last,
"seen_count",
phone_numbers[row_num]->seen_count,
&error)) != EXIT_SUCCESS) {
fprintf(stderr,
"Failed to append called_number to json array\n");
fprintf(stderr, "Error: %s\n", error.text);
Add I just get:
Failed to append called_number to json array
Error: ?