Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion issues on last line of json file if it is ending by a quotation mark #14

Open
Selli3518 opened this issue Feb 29, 2024 · 0 comments

Comments

@Selli3518
Copy link

Every time you convert a json file to python it appears that the last line of a section is leading to invalid python code if this line ends by a quotation mark.

Here an example .json file:

"source": [
                "string1 = 'variable1'\r\n",
		"string2 = 'variable2'\r\n",
	        "string3 = 'variable3'"
	]

Here an resulting .py file:

string1 = 'variable1'
string2 = 'variable2'
string3 = 'variable3

It doesn't make a difference if you use single or double quotes in the json file. Anyway it will be missing in the converted .py file.
Could you please check if there is a way to fix this issue. Think some people here would appreciate that.

BR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant