Skip to content

Commit

Permalink
Merge pull request #16 from zmartzone/preserve_key_order_in_cjose_hea…
Browse files Browse the repository at this point in the history
…der_get_raw_as_well

preserve key order in cjose_header_get_raw as well
  • Loading branch information
zandbelt authored Oct 24, 2022
2 parents b80925b + dfd5835 commit 35cb9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,5 @@ char *cjose_header_get_raw(cjose_header_t *header, const char *attr, cjose_err *
return NULL;
}

return json_dumps(value_obj, JSON_COMPACT);
return json_dumps(value_obj, JSON_COMPACT | JSON_PRESERVE_ORDER);
}

0 comments on commit 35cb9df

Please sign in to comment.