metafacture / metafacture-core

Core package of the Metafacture tool suite for metadata processing.
https://metafacture.org
Apache License 2.0
69 stars 34 forks source link

decode/encode-json boolean values #457

Closed TobiasNx closed 1 year ago

TobiasNx commented 2 years ago

the decoder/encoder cannot handle boolean values it adds "

"isAccessibleForFree": true is turned to "isAccessibleForFree": "true"

blackwinter commented 2 years ago

Well, Metafacture doesn't have a concept of boolean values, everything is a string internally. This applies to numbers just the same.

TobiasNx commented 2 years ago

any way to add an boolean marker so that the json decoder translates boolean as a marked field and the encoder understands this and creates an boolean?

blackwinter commented 2 years ago

We could introduce boolean and number markers, similar to the array marker (cf. #393).

blackwinter commented 1 year ago

For future reference: You can now run ./gradlew fluxCommands to see the currently available options (743e90e).