René's URL Explorer Experiment


Title: Contextualized construction does not work · Issue #136 · IBM/JSONata4Java · GitHub

Open Graph Title: Contextualized construction does not work · Issue #136 · IBM/JSONata4Java

X Title: Contextualized construction does not work · Issue #136 · IBM/JSONata4Java

Description: When I contextualize object construction, nothing will be constructed. By "contextualize construction" I mean instead of: { "utter": { "say": nested.greeting, "think": nested.thinking }, "nestedBinding": { "say": $nested.greeting, "think...

Open Graph Description: When I contextualize object construction, nothing will be constructed. By "contextualize construction" I mean instead of: { "utter": { "say": nested.greeting, "think": nested.thinking }, "nestedBin...

X Description: When I contextualize object construction, nothing will be constructed. By "contextualize construction" I mean instead of: { "utter": { "say": nested.greeting, "th...

Opengraph URL: https://github.com/IBM/JSONata4Java/issues/136

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Contextualized construction does not work","articleBody":"When I contextualize object construction, nothing will be constructed.\r\n\r\nBy \"contextualize construction\" I mean instead of: \r\n\r\n```\r\n{ \r\n    \"utter\": {\r\n        \"say\": nested.greeting,\r\n        \"think\": nested.thinking\r\n    },\r\n    \"nestedBinding\":  {\r\n        \"say\": $nested.greeting,\r\n        \"think\": $nested.thinking\r\n    }\r\n}\r\n```\r\n\r\nI want to remove duplication by pulling nested and $nested in front of the object constructor.\r\n\r\n```\r\n{ \r\n    \"utter\": nested {\r\n        \"say\": greeting,\r\n        \"think\": thinking\r\n    },\r\n    \"nestedBinding\": $nested {\r\n        \"say\": greeting,\r\n        \"think\": thinking\r\n    }\r\n}\r\n```\r\nThis should also allow me to filter for a certain item and then work inside its context, see https://try.jsonata.org/PCo2yBJJg. That way I want to factor out filter criteria for numerous entries.\r\n\r\n```\r\n@Test\r\n    public void supportsContextualizedConstruction() throws Exception {\r\n        String json = \"{ \\n\" +\r\n            \"  \\\"nested\\\": {\\n\" +\r\n            \"    \\\"greeting\\\": \\\"hello\\\",\\n\" +\r\n            \"    \\\"thinking\\\": \\\"bored\\\"\\n\" +\r\n            \"  } \\n\" +\r\n            \"}\";\r\n        JsonNode rootContextNode = JACKSON.readTree(json);\r\n\r\n        String jsonata = \"{ \\n\" +\r\n            \"    \\\"utter\\\": nested {\\n\" +\r\n            \"        \\\"say\\\": greeting,\\n\" +\r\n            \"        \\\"think\\\": thinking\\n\" +\r\n            \"    },\\n\" +\r\n            \"    \\\"nestedBinding\\\": $nested {\\n\" +\r\n            \"        \\\"say\\\": greeting,\\n\" +\r\n            \"        \\\"think\\\": thinking\\n\" +\r\n            \"    }\\n\"\r\n            + \"}\";\r\n        Expression jsonataExpr = Expression.jsonata(jsonata);\r\n\r\n        ObjectNode bindingNode = JACKSON.createObjectNode();\r\n        bindingNode //\r\n            .put(\"nested\",\r\n                \"{\\n\"\r\n                    + \"    \\\"nested\\\": {\\n\"\r\n                    + \"         \\\"greeting\\\": \\\"welcome\\\",\\n\"\r\n                    + \"         \\\"thinking\\\": \\\"ayaah!\\\" \\n\"\r\n                    + \"    }\\n\"\r\n                    + \"}\");\r\n\r\n        JsonNode transformed = jsonataExpr.evaluate(rootContextNode, bindingNode);\r\n        System.out.println(transformed);\r\n    }\r\n```\r\nResult:\r\n`{}`\r\n\r\nExpected according to https://try.jsonata.org/Vb34AQ8j4:\r\n```\r\n{\r\n  \"utter\": {\r\n    \"say\": \"hello\",\r\n    \"think\": \"bored\"\r\n  },\r\n  \"nestedBinding\": {\r\n    \"say\": \"welcome\",\r\n    \"think\": \"ayaah!\"\r\n  }\r\n}\r\n```\r\n","author":{"url":"https://github.com/dschulten","@type":"Person","name":"dschulten"},"datePublished":"2021-01-16T18:05:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/136/JSONata4Java/issues/136"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5be49aaf-3432-512c-e4e3-80b823a79df5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA41A:397AD8:5F32B24:85C80A0:6A4FFC25
html-safe-noncee9ddeb245c34a0f5a1f25b0f44f9bdd8d0e9281c05e5472689ed6aac5a1695cf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDFBOjM5N0FEODo1RjMyQjI0Ojg1QzgwQTA6NkE0RkZDMjUiLCJ2aXNpdG9yX2lkIjoiMTY4MDY0NzMxNjMyNTc5MjgwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca9d0f9d99de256c05d75d17508497430e68cea407f9f6b6774c45c72844ffede
hovercard-subject-tagissue:787521092
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/IBM/JSONata4Java/136/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ffaa8393d27a00f1c76725515bfcc13c49c9bf2b77a737aadb5cf3ecfb73460e/IBM/JSONata4Java/issues/136
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ffaa8393d27a00f1c76725515bfcc13c49c9bf2b77a737aadb5cf3ecfb73460e/IBM/JSONata4Java/issues/136
og:image:altWhen I contextualize object construction, nothing will be constructed. By "contextualize construction" I mean instead of: { "utter": { "say": nested.greeting, "think": nested.thinking }, "nestedBin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedschulten
hostnamegithub.com
expected-hostnamegithub.com
None3bd0ff5d28a87b4801a63fb38c2a21a91b0a700dca159dc9416aeae05771b899
turbo-cache-controlno-preview
go-importgithub.com/IBM/JSONata4Java git https://github.com/IBM/JSONata4Java.git
octolytics-dimension-user_id1459110
octolytics-dimension-user_loginIBM
octolytics-dimension-repository_id169904880
octolytics-dimension-repository_nwoIBM/JSONata4Java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id169904880
octolytics-dimension-repository_network_root_nwoIBM/JSONata4Java
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
release67a336083e4dcb40224dc2c01cd4c7ed413bdb09
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IBM/JSONata4Java/issues/136#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIBM%2FJSONata4Java%2Fissues%2F136
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIBM%2FJSONata4Java%2Fissues%2F136
Sign up https://github.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=IBM%2FJSONata4Java
Reloadhttps://github.com/IBM/JSONata4Java/issues/136
Reloadhttps://github.com/IBM/JSONata4Java/issues/136
Reloadhttps://github.com/IBM/JSONata4Java/issues/136
Please reload this pagehttps://github.com/IBM/JSONata4Java/issues/136
IBM https://github.com/IBM
JSONata4Javahttps://github.com/IBM/JSONata4Java
Notifications https://github.com/login?return_to=%2FIBM%2FJSONata4Java
Fork 41 https://github.com/login?return_to=%2FIBM%2FJSONata4Java
Star 128 https://github.com/login?return_to=%2FIBM%2FJSONata4Java
Code https://github.com/IBM/JSONata4Java
Issues 80 https://github.com/IBM/JSONata4Java/issues
Pull requests 0 https://github.com/IBM/JSONata4Java/pulls
Actions https://github.com/IBM/JSONata4Java/actions
Projects https://github.com/IBM/JSONata4Java/projects
Security and quality 0 https://github.com/IBM/JSONata4Java/security
Insights https://github.com/IBM/JSONata4Java/pulse
Code https://github.com/IBM/JSONata4Java
Issues https://github.com/IBM/JSONata4Java/issues
Pull requests https://github.com/IBM/JSONata4Java/pulls
Actions https://github.com/IBM/JSONata4Java/actions
Projects https://github.com/IBM/JSONata4Java/projects
Security and quality https://github.com/IBM/JSONata4Java/security
Insights https://github.com/IBM/JSONata4Java/pulse
Contextualized construction does not workhttps://github.com/IBM/JSONata4Java/issues/136#top
https://github.com/dschulten
dschultenhttps://github.com/dschulten
on Jan 16, 2021https://github.com/IBM/JSONata4Java/issues/136#issue-787521092
https://try.jsonata.org/PCo2yBJJghttps://try.jsonata.org/PCo2yBJJg
https://try.jsonata.org/Vb34AQ8j4https://try.jsonata.org/Vb34AQ8j4
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.