Skip to content

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

@francescobianco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions