Closed telltime closed 5 years ago
kafka生产的嵌套JSON,像这样的,如果要根据type的内容,把data的数据写进ck,要怎么做啊。
{ "database": "test", "table": "dim_table1", "type": "insert", "ts": 1543912762, "xid": 2209, "commit": true, "data": { "id": 5815, "name": "jay" } }
这个可以自己实现 自定义Parser
@telltime Have you implemented a nested json parser yet?
I would also be interested in a nested json parser
@telltime #21 这里后面有个示例
kafka生产的嵌套JSON,像这样的,如果要根据type的内容,把data的数据写进ck,要怎么做啊。
{ "database": "test", "table": "dim_table1", "type": "insert", "ts": 1543912762, "xid": 2209, "commit": true, "data": { "id": 5815, "name": "jay" } }