You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
{"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.
The text was updated successfully, but these errors were encountered: