Skip to content

Configuration of Python keyword style #224

@HolQue

Description

@HolQue

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.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions