We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ef5a8 commit 1d8bdc8Copy full SHA for 1d8bdc8
json.c
@@ -218,6 +218,16 @@ json_value * json_parse_ex (json_settings * settings,
218
long num_digits = 0, num_e = 0;
219
json_int_t num_fraction = 0;
220
221
+ /* Skip UTF-8 BOM
222
+ */
223
+ if (length >= 3 && json [0] == 0xEF
224
+ && json [1] == 0xBB
225
+ && json [2] == 0xBF)
226
+ {
227
+ json += 3;
228
+ length -= 3;
229
+ }
230
+
231
error[0] = '\0';
232
end = (json + length);
233
0 commit comments