JSON source¶
The JSON source can read entities from a JSON resource available over HTTP (i.e. served by a web server). The service must conform to the JSON Pull Protocol.
Consider using the more general REST source if you’re interacting with a non-Sesam JSON capable REST api.
If the supports_since
property is set to true, then the since
request parameter is added to the URL to
signal that we want only changes that happened after the since marker.
Prototype¶
{
"system": "system-id",
"type": "json",
"url": "url-to-json-data",
"supports_signalling": false,
"headers": {
"some-header": "some-value"
}
}
Properties¶
Property |
Type |
Description |
Default |
Req |
---|---|---|---|---|
|
String |
The id of the URL system or microservice system component to use. |
Yes |
|
|
String |
The URL of the |
Yes |
|
|
Boolean |
Flag used to enable or disable signalling support between internal pipes (dataset to dataset pipes). If enabled, a pipe run is scheduled as soon as the input dataset(s) changes. It does not interrupt any already running pipes. |
|
|
|
Integer(>=1) |
If the page size is specified then the source will download the data across multiple requests until there is no more data left to download. The Note Paging is only available if the source has |
No paging |
|
|
Array |
An
eq DTL expression where the left hand side is the index expression and the right hand side is the value that represents the subset. If the subset is specified then only entities that are in that subset will be read from the source.Example:
["eq", "_S.category", "tank"] Note For this to work the source must support subsets. |
No |
|
|
Dict<String,String> |
A optional set of header values to set in HTTP request made using this source. Both keys and values must evaluate to strings. |
||
|
Enum<String> |
Determines the behaviour of the pipe when the JSON source does not return any entities. Normally, any previously synced
entities will be deleted even if the pipe does not receive any entities from its source.
If set to The global default |
|
Continuation support¶
See the section on continuation support for more information.
Property |
Value |
---|---|
|
|
|
|
|
|