Skip to content

JSON response returned as string instead of dict (Flask integration) #6

Description

@francescobianco

JSON response returned as string instead of dict (Flask integration)

Description
SDK returns raw string instead of parsed JSON, adding boilerplate in Flask apps.

Code snippet

from flask import Flask
import json

app = Flask(__name__)

resp = client.request("GET", base_url, "/advance")
data = json.loads(resp)

Issue
Expected automatic JSON decoding.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions