ChrisMichaelPerezSantiago / covid19

This API provides updated real-time data on coronavirus cases from the worldometers page, provided by the most reputable organizations and statistical offices in the world.
MIT License
76 stars 17 forks source link

Strings s/b surrounded by double quotes #23

Closed w8HAQRHkTx7r closed 4 years ago

w8HAQRHkTx7r commented 4 years ago

According to the JSON standard, https://tools.ietf.org/html/rfc7159#section-7, keys and values should be surrounded by " instead of the ' which is being output in this API. The examples in the README show both being used, but I'm only seeing the single quote. Can that be changed?

ChrisMichaelPerezSantiago commented 4 years ago

Hi @w8HAQRHkTx7r ,

Quite curious.

From what I've tried, all endpoin keys are covered with "".

Regarding the values, some are of type string and others are of type number.

I must understand that yes, the object is correctly built and follows the standards of a JSON.

If you want, you can provide me the output of the endpoint URL or the function if you are using the library.

w8HAQRHkTx7r commented 4 years ago

How curious! After additional testing on other platforms, it now appears that the json parser I use in Python on Raspberry Pi is the culprit.