Closed iBinh closed 3 years ago
Interesting - does deserialization work if you use a serde_json::Map<String, serde_json::Value>
instead?
It works
OK - it sounds like I'm missing a deserialize implementation for byte slices - you can PR it or else I'll add it when I get a chance.
I just published 0.1.3 which should resolve this issue.
I'm using
ijson
version0.1.2
to deserialize csv records intoIObject
, example below:It says
CSV deserialize error: record 1 (line: 2, byte: 22): invalid type: byte array, expected JSON string at line 0
The same error withtype Object = std::collections::HashMap<IString, IObject>
However, if I changetype
tostd::collections::HashMap<String, IObject>
it works well