test-fullautomation / python-jsonpreprocessor

A preprocessor for json files
Apache License 2.0
2 stars 2 forks source link

Configuration of Python keyword style #224

Open HolQue opened 3 months ago

HolQue commented 3 months ago

In default case and if explicitly coded by CJsonPreprocessor(syntax="python"), this works:

"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.

I can do this (with still: syntax="json"):

"param1" : ${True}

And I get boolean True.