René's URL Explorer Experiment


Title: JsonObject does not expose array values · Issue #1455 · googleapis/python-spanner · GitHub

Open Graph Title: JsonObject does not expose array values · Issue #1455 · googleapis/python-spanner

X Title: JsonObject does not expose array values · Issue #1455 · googleapis/python-spanner

Description: Thanks for stopping by to let us know something could be better! PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response. Plea...

Open Graph Description: Thanks for stopping by to let us know something could be better! PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. ...

X Description: Thanks for stopping by to let us know something could be better! PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. ...

Opengraph URL: https://github.com/googleapis/python-spanner/issues/1455

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JsonObject does not expose array values","articleBody":"Thanks for stopping by to let us know something could be better!\n\n**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.\n\nPlease run down the following list and make sure you've tried the usual \"quick fixes\":\n\n  - Search the issues already opened: https://github.com/googleapis/python-spanner/issues ✅ \n  - Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python ✅ \n\nIf you are still having issues, please be sure to include as much information as possible:\n\n#### Environment details\n\n  - OS type and version:\n  - Python version: 3.10\n  - pip version: 25.2\n  - `google-cloud-spanner` version: 3.55.0\n\n#### Steps to reproduce\n\n  1. Have a Json column in Spanner with schema like e.g. {\"a\": 1, \"b\": [2,3]} \n  2. execute SQL selecting field b\n  3. Attempt to index into the array contained by b\n  4. error raised\n\n#### Code example\n\n```python\nwith my_database.snapshot() as snapshot:\n    result = snapshot.execute_sql(\"SELECT JSON_QUERY(my_json_col, '$.\"b\"') as b_col\nisinstance(b_col, google.cloud.spanner_v1.data_types.JsonObject) # True\nb_col[0] # raises error \n```\n\n#### Stack trace\n```\nTraceback (most recent call last):\n  File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\nKeyError: 0\n```\n\nBasically, I see that holding arrays is seen as possible in JsonObject (https://github.com/googleapis/python-spanner/blob/9535e5e096f6ab53f2817af4fd7ac1fa2ca71660/google/cloud/spanner_v1/data_types.py#L34), and is successfully serialized, but you cannot index into it, if you have need to transform the data in code.\n\n_____________\nMaking sure to follow these steps will guarantee the quickest resolution possible.\n\nThanks!\n","author":{"url":"https://github.com/ajrock","@type":"Person","name":"ajrock"},"datePublished":"2025-11-07T14:13:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1455/python-spanner/issues/1455"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b78e422e-c8c9-aaee-518f-28a90c6b89fd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBA5C:272E5B:40CEC9:589586:69774DA7
html-safe-nonce600e288ad9035de73757e7dcda27ef7e0f1b09fe9ebc29dccb4c9a1fc217946f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTVDOjI3MkU1Qjo0MENFQzk6NTg5NTg2OjY5Nzc0REE3IiwidmlzaXRvcl9pZCI6IjU1MTkzNzk4NDI5ODMyMTg1OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace2ef65a62122a44c07b9a4198f7e7f91ded066f824e17c135efa7a5d88e4137e
hovercard-subject-tagissue:3600537434
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-spanner/1455/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fdc594ddf3b112665494edad9c528eca3481597235a6354e75db1adb9ea4762d/googleapis/python-spanner/issues/1455
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fdc594ddf3b112665494edad9c528eca3481597235a6354e75db1adb9ea4762d/googleapis/python-spanner/issues/1455
og:image:altThanks for stopping by to let us know something could be better! PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameajrock
hostnamegithub.com
expected-hostnamegithub.com
None3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-spanner git https://github.com/googleapis/python-spanner.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id226992630
octolytics-dimension-repository_nwogoogleapis/python-spanner
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226992630
octolytics-dimension-repository_network_root_nwogoogleapis/python-spanner
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/googleapis/python-spanner/issues/1455#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-spanner%2Fissues%2F1455
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-spanner%2Fissues%2F1455
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-spanner
Reloadhttps://patch-diff.githubusercontent.com/googleapis/python-spanner/issues/1455
Reloadhttps://patch-diff.githubusercontent.com/googleapis/python-spanner/issues/1455
Reloadhttps://patch-diff.githubusercontent.com/googleapis/python-spanner/issues/1455
googleapis https://patch-diff.githubusercontent.com/googleapis
python-spannerhttps://patch-diff.githubusercontent.com/googleapis/python-spanner
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fpython-spanner
Fork 101 https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fpython-spanner
Star 150 https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fpython-spanner
Code https://patch-diff.githubusercontent.com/googleapis/python-spanner
Issues 52 https://patch-diff.githubusercontent.com/googleapis/python-spanner/issues
Pull requests 32 https://patch-diff.githubusercontent.com/googleapis/python-spanner/pulls
Actions https://patch-diff.githubusercontent.com/googleapis/python-spanner/actions
Projects 0 https://patch-diff.githubusercontent.com/googleapis/python-spanner/projects
Security 0 https://patch-diff.githubusercontent.com/googleapis/python-spanner/security
Insights https://patch-diff.githubusercontent.com/googleapis/python-spanner/pulse
Code https://patch-diff.githubusercontent.com/googleapis/python-spanner
Issues https://patch-diff.githubusercontent.com/googleapis/python-spanner/issues
Pull requests https://patch-diff.githubusercontent.com/googleapis/python-spanner/pulls
Actions https://patch-diff.githubusercontent.com/googleapis/python-spanner/actions
Projects https://patch-diff.githubusercontent.com/googleapis/python-spanner/projects
Security https://patch-diff.githubusercontent.com/googleapis/python-spanner/security
Insights https://patch-diff.githubusercontent.com/googleapis/python-spanner/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/googleapis/python-spanner/issues/1455
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/googleapis/python-spanner/issues/1455
JsonObject does not expose array valueshttps://patch-diff.githubusercontent.com/googleapis/python-spanner/issues/1455#top
https://patch-diff.githubusercontent.com/bhatt4982
api: spannerIssues related to the googleapis/python-spanner API.https://github.com/googleapis/python-spanner/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
https://github.com/ajrock
https://github.com/ajrock
ajrockhttps://github.com/ajrock
on Nov 7, 2025https://github.com/googleapis/python-spanner/issues/1455#issue-3600537434
support consolehttps://cloud.google.com/support/
https://github.com/googleapis/python-spanner/issueshttps://github.com/googleapis/python-spanner/issues
https://stackoverflow.com/questions/tagged/google-cloud-platform+pythonhttps://stackoverflow.com/questions/tagged/google-cloud-platform+python
python-spanner/google/cloud/spanner_v1/data_types.pyhttps://github.com/googleapis/python-spanner/blob/9535e5e096f6ab53f2817af4fd7ac1fa2ca71660/google/cloud/spanner_v1/data_types.py#L34
9535e5ehttps://patch-diff.githubusercontent.com/googleapis/python-spanner/commit/9535e5e096f6ab53f2817af4fd7ac1fa2ca71660
bhatt4982https://patch-diff.githubusercontent.com/bhatt4982
api: spannerIssues related to the googleapis/python-spanner API.https://github.com/googleapis/python-spanner/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.