We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When calling JsonObject on a JsonObject when top level of data is a list (ex: JsonObject(JsonObject([{"k": "v"}]))) returns a empty JsonObject ({})
JsonObject(JsonObject([{"k": "v"}]))
{}
google-cloud-spanner
from google.cloud.spanner_v1 import JsonObject data = {"key": "value"} x = JsonObject(data) y = JsonObject(x) print(x, y) data = [{"key": "value"}] x = JsonObject(data) y = JsonObject(x) print(x, y)
Expected Output:
{'key': 'value'} {'key': 'value'} [{'key': 'value'}] [{'key': 'value'}]
Got Output:
{'key': 'value'} {'key': 'value'} [{'key': 'value'}] {}
If fixed, should also fix: googleapis/python-spanner-sqlalchemy#404
The text was updated successfully, but these errors were encountered:
harshachinta
Successfully merging a pull request may close this issue.
When calling JsonObject on a JsonObject when top level of data is a list (ex:
JsonObject(JsonObject([{"k": "v"}]))
) returns a empty JsonObject ({}
)Environment details
google-cloud-spanner
version: 3.47.0Steps to reproduce
Expected Output:
Got Output:
If fixed, should also fix: googleapis/python-spanner-sqlalchemy#404
The text was updated successfully, but these errors were encountered: