noctarius / borabora

borabora is a CBOR (cbor.io) parser supporting graph queries and lazy decoding of stream elements
Apache License 2.0
13 stars 5 forks source link

Add cbor serialized matching for dictionary #3

Closed noctarius closed 8 years ago

noctarius commented 8 years ago

Instead of matching strings and numbers against their deserialized form it would make sense to serialize them into a byte[](cbor encoded) first and try to match as much as possible against that serialized form. Only for strings if the simple match fails we have to deserialize the string and match against the deserialized form. Maybe it could be a config property in itself.