embulk / embulk-base-restclient

Base class library for Embulk plugins to access RESTful services
https://www.embulk.org/
Apache License 2.0
6 stars 7 forks source link

Add more |EmbulkValueScope| implementations for Jackson, and support placing values with JSON Pointers. #65

Closed dmikurube closed 7 years ago

dmikurube commented 7 years ago

@muga @sakama Adding more EmbulkValueScope implementations to support more flexible outputs.

Will release v0.4.0 after this PR is merged.

See example at : https://github.com/embulk/embulk-base-restclient/compare/more-scopes?expand=1#diff-0a75a6c3d5b4fa9fe7af36e6d55832d3R69

This JacksonServiceRequestMapper outputs a JSON as below:

{
  "id":12,
  "name":"someone",
  "dict":{
    "sub1":{
      "sub2":{
        "bar":"hoge"
      },
    "foo":"fuga"}
  }
}
dmikurube commented 7 years ago

Thanks! Merging.