Skip to content

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

@Selli3518

Description

@Selli3518

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions