No commit activity in last 3 years
No release in over 3 years
Jsoncolumn
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.10.6
>= 0.8.9
~> 0.5
>= 10.0
 Project Readme

Jsoncolumn filter plugin for Embulk

Extract json from input json.

Overview

  • Plugin type: filter

Configuration

  • schema: description (array, default: [], required)

schema

Array of schema definition. Schema name, type must be same as output column.

  • name: name of schema (string, required)
  • type: type of schema (string, required)
  • path: JsonPath (string, optional)

Example

Sample data.

"root": {
	    "cluster_name": "fuga",
	    "nodes": {
	        "hoge": {
	            "timestamp": 1466645114192,
	
	             .
	             .
	             .
	             .
	
	         }
	    },
	    "status": {
	    }
	}
}

Sample config.

filters:
  - type: jsoncolumn
    schema:
      - {name: cluster_name, type: string, path: "$..cluster_name"}
      - {name: nodes, type: string, path: "$..nodes"}

Result.

{
    "cluster_name": "fuga",
    "nodes": {
        "hoge": {
            "timestamp": 1466645114192,

             .
             .
             .
             .

         }
    }
}

Build

$ rake