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

Output from some functions is not Json string but string containing Json #3

Open
mkudlej opened this issue Oct 23, 2015 · 0 comments
Open

Comments

@mkudlej
Copy link

mkudlej commented Oct 23, 2015

Example:
request.url: http://10.34.X:8080/api/v1/auth/login (similar for logout)
request.method: POST
response.content: "{'message': 'Logged in'}" <- this is parsed as string which contains {'message': 'Logged in'}

I expect that it will be like this:
response.content: {'message': 'Logged in'} <- this will be parsed to dictionary {'message': 'Logged in'}

Another function
request.url: http://10.34.X:8080/api/v1/users/test
request.method: GET
response.content: {"Username":"test","Email":"test@localhost","Role":"admin","Groups":[],"Type":0,"Status":true} <- this is correctly parsed to dictionary

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