jcopy has broken support for json-norecurse encoding

Issue #134 resolved
Ben Smith created an issue

The jcopy command used to support encodings of json, json-nokeys, json-norecurse etc.

This commit to mhttpd.cxx broke the logic, and now only odb/xml/json are supported - the json-* variants result in odb-style output.

I think the fix is simple, just change

fmt_json = (equal_ustring(fmt, "json") > 0);

to

fmt_json = (strstr(fmt, "json") != NULL);

Comments (1)

  1. Stefan Ritt

    You are absolutely correct. I was not aware of the different json encodings. Your patch should fix this, so I committed it.

  2. Log in to comment