added MIO_JSON_OPTIONAL_COMMA

This commit is contained in:
2021-07-14 05:29:17 +00:00
parent 3e0654e131
commit 33afbfc419
2 changed files with 18 additions and 4 deletions

View File

@ -120,6 +120,7 @@ int main (int argc, char* argv[])
for (i = 1; i < argc; i++)
{
if (strcmp(argv[i], "--permit-word-key") == 0) o |= MIO_JSON_PERMIT_WORD_KEY;
if (strcmp(argv[i], "--optional-comma") == 0) o |= MIO_JSON_OPTIONAL_COMMA;
}
mio = mio_open(MIO_NULL, 0, MIO_NULL, 512, MIO_NULL);