Skip to content

[FEATURE] Add JSON Datasource and Json Query plugin - #770

Open
adrianSepiol wants to merge 1 commit into
perses:mainfrom
adrianSepiol:feature/json-datasource-plugin
Open

[FEATURE] Add JSON Datasource and Json Query plugin#770
adrianSepiol wants to merge 1 commit into
perses:mainfrom
adrianSepiol:feature/json-datasource-plugin

Conversation

@adrianSepiol

Copy link
Copy Markdown
Contributor

Related issue: perses/perses#3284
Depends on:

Description

Adds json datasource and query plugin. It allows to query any endpoint that returns json and optionally parse output with jsonata. This MVP allows for:

  • querying data with GET
  • querying data with post with json body
  • adding query params
  • using variables in path, body and request params
  • using result with Table plugin

Limitations:

  • using variables in jsonata expression is not allowed as it conflicts with its syntax
  • only json body is allowed for post call

Screenshots

Datasource editor:

Screenshot 2026-08-17 at 12 03 37

Query plugin for GET:

Screenshot 2026-08-17 at 12 06 09

Query Plugin for POST:
Screenshot 2026-08-17 at 12 09 04

Query with request params:
Screenshot 2026-08-17 at 12 26 06

Query with body:
Screenshot 2026-08-17 at 12 28 35

Error for empty response:

Screenshot 2026-08-17 at 12 31 41

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

@adrianSepiol
adrianSepiol force-pushed the feature/json-datasource-plugin branch 4 times, most recently from 46da622 to db4e2ff Compare September 1, 2026 11:36
Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
[FEATURE] Change JsonData type from any to unknown

Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
@adrianSepiol
adrianSepiol force-pushed the feature/json-datasource-plugin branch from db4e2ff to c31bb11 Compare September 1, 2026 11:43
@adrianSepiol
adrianSepiol marked this pull request as ready for review September 1, 2026 13:12
@adrianSepiol
adrianSepiol requested review from jgbernalp and removed request for a team September 1, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant