Allow ByteArray as input when parsing JSON
The JSON parser introduced in master
only supports String
as input, which makes parsing files rather wasteful/clunky as you first have to convert a ByteArray
to a String
. Instead the JSON parser should just support both String
and ByteArray
.
For this to work we probably need to introduce a trait that is both implemented by String
and ByteArray
, and use that as the expected input. The parser does try to parse strings into Int/Float values (with a custom offset) in a few places, so we need a way of handling that.