allow reading maps from number -> value
authorJohn Fremlin VII <john@fb.com>
Tue, 21 May 2013 23:04:40 +0000 (16:04 -0700)
committerOwen Yamauchi <oyamauchi@fb.com>
Mon, 3 Jun 2013 19:22:18 +0000 (12:22 -0700)
commita4c90474ff595398d94043f386634befa3ef4728
tree39793335f7b17ca07025114cbaf57654444e986c
parenta896ed3944ade052af5ab68167cf21505b55286d
allow reading maps from number -> value

Summary:
The serialization of PHP values often uses integer -> value
maps in JSON arrays. These are emitted by the standard stream <<
operator on dynamics but cannot be read. This diff fixes that.

Test Plan: - read in serialized value with array "bucketing":{"days_stale":{0:{2:null,1:14.01,0:"more_than_two_weeks_stale"}}}

Reviewed By: delong.j@fb.com

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