sort_keys option for json
authorAnton Likhtarov <alikhtarov@fb.com>
Tue, 26 Nov 2013 02:26:29 +0000 (18:26 -0800)
committerJordan DeLong <jdelong@fb.com>
Fri, 20 Dec 2013 21:03:17 +0000 (13:03 -0800)
commitbfa6ffb55e8a371130b1d391926afd3030a8cedc
tree0df3d5fd2d0d6f7d70da72dd5817ef4310c13f4d
parent048a4518ce3b44df833fa68518e84e7eef5ace04
sort_keys option for json

Summary:
A dumb&slow implementation. I just needed something that outputs keys in a sorted order.
No easy to use API to discourage the use due to perf implications.

Test Plan: unit test

Reviewed By: delong.j@fb.com

FB internal diff: D1073757
folly/json.cpp
folly/json.h
folly/test/JsonTest.cpp