src/utils_format_json.c: Use a format string to add strings to the buffer.