aaronbinns/jbs — Issue #1: Multi-valued properties mishandled by Document.fromJSON()
Author: aaronbinns
Created: 2012-01-10 20:00:04+00:00
State: open

When serializing in from a JSON string, multi-valued properties (other than the special "outlinks" property) are mishandled.

Rather than being parsed as a JSONArray and the individual elements added to the Document property, the JSONArray is converted to a String containing all the values, then that String is added to the Document property.

So, if the JSON was:
{ "foo":["bar","baz"] }

Rather than getting a property "foo" with two values "bar" and "baz", we'd get "foo" with one String value: "[\"bar\",\"baz\"]".