Constantin Rack
Constantin Rack
Hi @Avamander, is commit https://github.com/c-rack/cbor-java/commit/0ef74dc1a8dfa74fbb5cdcba6b64ad185bb1ba54 what you are looking for?
@vivekidem Would you like to make a PR that fixes this?
@jhannes Yes, a PR would be very appreciated!
@DavidKorczynski yes, that would be very appreciated!
@DavidKorczynski [email protected]
@DavidKorczynski Thanks! What would be the next steps? Or could this issue just closed?
I have added a test case that shows how a SimpleValue can be decoded here: https://github.com/c-rack/cbor-java/blob/master/src/test/java/co/nstant/in/cbor/decoder/SimpleValueDecoderTest.java Does this help?
Ok, understood, so all you need is a proper `toString()` for SimpleValue objects, right?
Ok, but then you don't need a `toString()` (although it would be an enhancement to have a proper one), but a `toJsonElement()` (if you would use GSON, for example), which...
Could you please post the CBOR-encoded byte array for your example? Maybe we can add a unit test that helps to understand the issue. Thanks!