… | |
… | |
460 | |
460 | |
461 | encode_ch (enc, '{'); |
461 | encode_ch (enc, '{'); |
462 | |
462 | |
463 | // for canonical output we have to sort by keys first |
463 | // for canonical output we have to sort by keys first |
464 | // actually, this is mostly due to the stupid so-called |
464 | // actually, this is mostly due to the stupid so-called |
465 | // security workaround added somewhere in 5.8.x. |
465 | // security workaround added somewhere in 5.8.x |
466 | // that randomises hash orderings |
466 | // that randomises hash orderings |
467 | if (enc->json.flags & F_CANONICAL) |
467 | if (enc->json.flags & F_CANONICAL) |
468 | { |
468 | { |
469 | int count = hv_iterinit (hv); |
469 | int count = hv_iterinit (hv); |
470 | |
470 | |