Open HolQue opened 3 months ago
In default case and if explicitly coded by CJsonPreprocessor(syntax="python"), this works:
CJsonPreprocessor(syntax="python")
"param1" : True, "param2" : False, "param3" : None
But switching to pure JSON format with
CJsonPreprocessor(syntax="json")
the above code causes
Expecting value: line 2 column 15 (char 16)'!
This error message is unfavorable. There is no value missing. There is a value found that is not expected or not supported.
But do we really need this "syntax" parameter? I don't think so.
syntax
I can do this (with still: syntax="json"):
syntax="json"
"param1" : ${True}
And I get boolean True.
True
In default case and if explicitly coded by
CJsonPreprocessor(syntax="python")
, this works:But switching to pure JSON format with
CJsonPreprocessor(syntax="json")
the above code causes
Expecting value: line 2 column 15 (char 16)'!
This error message is unfavorable. There is no value missing. There is a value found that is not expected or not supported.
But do we really need this "
syntax
" parameter? I don't think so.I can do this (with still:
syntax="json"
):"param1" : ${True}
And I get boolean
True
.