Allow custom sorting function for JSON serializer
authorDylan Yudaken <dylany@fb.com>
Tue, 28 Mar 2017 15:02:42 +0000 (08:02 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 28 Mar 2017 15:06:59 +0000 (08:06 -0700)
commit43a79f74cfdeac62198fc4dbdda7a04d4d14ece6
tree12432ad4926c0634559b497a74cc9629489dcda0
parent5a66fe5de00a07af9e159efa2bfdaa6fdb925d24
Allow custom sorting function for JSON serializer

Summary: In some situations it is useful to be able to sort the JSON keys according to some different scheme for readability, so allow the sorting function to be changed by the serializer_opts

Reviewed By: yfeldblum

Differential Revision: D4782077

fbshipit-source-id: 032fa60a38804452bd1c22c67ba897521cb2cd1d
folly/json.cpp
folly/json.h
folly/test/JsonTest.cpp