test-fullautomation / python-jsonpreprocessor

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

Naming convention violation (2) #354

Open HolQue opened 1 week ago

HolQue commented 1 week ago

The naming convention tells: Key names have to start with a letter, digit or underscore.

But nevertheless the following JSON code throws an error:

"𠼭param" : "value"

Result:

'Invalid key name: "ð ¼­param". Key names have to start with a letter, digit or underscore.'

I move the special character to the right:

"p𠼭aram" : "value"

Now things are fine:

[DOTDICT] (1/1) > {p𠼭aram} [STR] : 'value'

Seems that the check of the first character in key names has an issue. Because in general such special characters are accepted inside key names.

HolQue commented 1 week ago

Retest successful. Issue can be closed.