Since the JSON spec says to encode booleans as either "true" or "false", shouldn't the package recognize these and return valid Julian Bool?
I realize the performance implication is pretty terrible here because every string will need to be tested. I don't know if Python or Javascript returns language compatible booleans.
In my code I need to hard code tests for the presence of a key that I know will contain a boolean and convert the string to the corresponding bool value. This is kind of unfortunate--I won't always know in advance.
{"mybool": "true"}
will parse into a Julia Dict as
d["mybool"] "true"
with a type of String, naturally.
Since the JSON spec says to encode booleans as either "true" or "false", shouldn't the package recognize these and return valid Julian Bool?
I realize the performance implication is pretty terrible here because every string will need to be tested. I don't know if Python or Javascript returns language compatible booleans.
In my code I need to hard code tests for the presence of a key that I know will contain a boolean and convert the string to the corresponding bool value. This is kind of unfortunate--I won't always know in advance.