Skip to content

REST API does not return valid JSON #4393

Answered by AxelRICHARD
ctmbl asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

Thank you for the feedback on the REST APIs, it is much appreciated.

Here are my answers:

  1. the use of single quote instead of double

Could it be possible that it is your import requests; print(requests.get("http://localhost:8080/api/rest/projects").json() that produces the simple quotes?
With postman, I get double quotes.

  1. the unquoted value None in case a project has no description

Could it be possible that it is your import requests; print(requests.get("http://localhost:8080/api/rest/projects").json() that produces this None value?
With postman, I get null instead of "None".

Regards,

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@ctmbl
Comment options

@ctmbl
Comment options

@AxelRICHARD
Comment options

Answer selected by ctmbl
Comment options

You must be logged in to vote
5 replies
@AxelRICHARD
Comment options

@ctmbl
Comment options

@AxelRICHARD
Comment options

@ctmbl
Comment options

@AxelRICHARD
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants