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

Single quotation mark are not supported. #120

Open
BurgessX opened this issue Dec 13, 2021 · 1 comment
Open

Single quotation mark are not supported. #120

BurgessX opened this issue Dec 13, 2021 · 1 comment

Comments

@BurgessX
Copy link

I would appreciate it if you guys support single quotation mark in JSON-Viewer.

I know that it is more formal to use double quotation mark, rather than single quotation mark. However, some module interfaces do output JSON texts which contain single quotation mark, such as the python module requests. This is an example which outputs JSON text with single quotation mark:

url = 'https://...'
response = requests.get(url)
print(response.json())
@Luuk34
Copy link

Luuk34 commented Jul 21, 2023

https://stackoverflow.com/a/33419102/724039

The json() method doesn't actually return JSON. It returns a Python object (read: dictionary) that contains the same information as the JSON data. When you print it out, the quotes are added for the sake of readability, they are not actually in your data.

Should I care about it or not?

Not.

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

2 participants