Skip to content
New issue

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

[Feature][Connector-V2][HTTP] Use json-path parsing #3510

Merged
merged 22 commits into from
Nov 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modify md
liugddx committed Nov 28, 2022
commit 694f7e5dad7288006196f3bd34657e4b0802cbea
21 changes: 18 additions & 3 deletions docs/en/connector-v2/source/Http.md
Original file line number Diff line number Diff line change
@@ -127,14 +127,29 @@ the schema fields of upstream data

### json_field [Config]

The Wildcards for jsonpath like
The Wildcards for jsonpath. This parameter must be used with schema.
```hocon
json_field = {
source {
Http {
url = "http://mockserver:1080/jsonpath/mock"
method = "GET"
format = "json"
json_field = {
category = "$.store.book[*].category"
author = "$.store.book[*].author"
title = "$.store.book[*].title"
price = "$.store.book[*].price"
}
schema = {
fields {
category = string
author = string
title = string
price = string
}
}
}
}
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add real response json example in here.


### common options
@@ -167,4 +182,4 @@ Http {

### new version

- Increase jsonpath parsing.
- [Feature][Connector-V2][HTTP] Use json-path parsing ([3510](https://github.com/apache/incubator-seatunnel/pull/3510))