Title: Add support for `JSON_OBJECTAGG` keyword in TSql170Parser · Issue #175 · microsoft/SqlScriptDOM · GitHub
Open Graph Title: Add support for `JSON_OBJECTAGG` keyword in TSql170Parser · Issue #175 · microsoft/SqlScriptDOM
X Title: Add support for `JSON_OBJECTAGG` keyword in TSql170Parser · Issue #175 · microsoft/SqlScriptDOM
Description: We have encountered a parsing issue in Microsoft Documentation in JSON_OBJECTAGG using TSql170Parser 170.128.0. Example script SELECT JSON_OBJECTAGG( t.c1 : t.c2 ) FROM ( VALUES('key1', 'c'), ('key2', 'b'), ('key3','a') ) AS t(c1, c2); S...
Open Graph Description: We have encountered a parsing issue in Microsoft Documentation in JSON_OBJECTAGG using TSql170Parser 170.128.0. Example script SELECT JSON_OBJECTAGG( t.c1 : t.c2 ) FROM ( VALUES('key1', 'c'), ('key...
X Description: We have encountered a parsing issue in Microsoft Documentation in JSON_OBJECTAGG using TSql170Parser 170.128.0. Example script SELECT JSON_OBJECTAGG( t.c1 : t.c2 ) FROM ( VALUES('key1', ...
Opengraph URL: https://github.com/microsoft/SqlScriptDOM/issues/175
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for `JSON_OBJECTAGG` keyword in TSql170Parser","articleBody":"We have encountered a parsing issue in [Microsoft Documentation](https://learn.microsoft.com/en-us/sql/t-sql/functions/json-objectagg-transact-sql?view=sql-server-ver17#examples) in `JSON_OBJECTAGG` using TSql170Parser [170.128.0](https://www.nuget.org/packages/Microsoft.SqlServer.TransactSql.ScriptDom/170.128.0).\n\n**Example script**\n```\nSELECT JSON_OBJECTAGG( t.c1 : t.c2 )\nFROM (\n VALUES('key1', 'c'), ('key2', 'b'), ('key3','a')\n) AS t(c1, c2);\n```\n\n**Steps to reproduce**\n\n```\n static void Main(string[] args)\n {\n var script = @\"\u003cEXAMPLE_SCRIPT\u003e\";\n\n var parser = new TSql170Parser(true, 0);\n var fragment = parser.Parse(new StringReader(script), out var parseErrors);\n\n if (parseErrors.Count \u003e 0)\n {\n Console.WriteLine(parseErrors[0].Message);\n }\n }\n```\n\n**Error Message :** `Incorrect syntax near ':'`","author":{"url":"https://github.com/naveennaik1","@type":"Person","name":"naveennaik1"},"datePublished":"2025-10-22T09:47:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/175/SqlScriptDOM/issues/175"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a6e1751-944d-824f-3f88-1457f0c92bf5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92A4:5F0D6:14F8E3:19FD65:699135C5 |
| html-safe-nonce | a2f084063b3d8b8961a913656d766dacdd80bc4e368af62c846dd0a7758c24ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkE0OjVGMEQ2OjE0RjhFMzoxOUZENjU6Njk5MTM1QzUiLCJ2aXNpdG9yX2lkIjoiMTM0NTcxMjEzODYzOTk3OTk3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dbd44ae338394edef2ef999d3cab35727c7fa8a9ff9551afa33b7f8b16fffd23 |
| hovercard-subject-tag | issue:3540063802 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/SqlScriptDOM/175/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5263d04beba5e98aeb5ca375830636608251edc80ee5239359dd83f8e9cf885d/microsoft/SqlScriptDOM/issues/175 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5263d04beba5e98aeb5ca375830636608251edc80ee5239359dd83f8e9cf885d/microsoft/SqlScriptDOM/issues/175 |
| og:image:alt | We have encountered a parsing issue in Microsoft Documentation in JSON_OBJECTAGG using TSql170Parser 170.128.0. Example script SELECT JSON_OBJECTAGG( t.c1 : t.c2 ) FROM ( VALUES('key1', 'c'), ('key... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | naveennaik1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/SqlScriptDOM git https://github.com/microsoft/SqlScriptDOM.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 543316377 |
| octolytics-dimension-repository_nwo | microsoft/SqlScriptDOM |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 543316377 |
| octolytics-dimension-repository_network_root_nwo | microsoft/SqlScriptDOM |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width