File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
metafacture-json/src/main/java/org/metafacture/json Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2017 hbz
2
+ * Copyright 2017, 2021 hbz
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 the "License";
5
5
* you may not use this file except in compliance with the License.
22
22
import com .fasterxml .jackson .databind .ObjectMapper ;
23
23
import com .jayway .jsonpath .JsonPath ;
24
24
25
+ import org .metafacture .framework .FluxCommand ;
25
26
import org .metafacture .framework .MetafactureException ;
26
27
import org .metafacture .framework .StreamReceiver ;
28
+ import org .metafacture .framework .annotations .Description ;
29
+ import org .metafacture .framework .annotations .In ;
30
+ import org .metafacture .framework .annotations .Out ;
27
31
import org .metafacture .framework .helpers .DefaultObjectPipe ;
28
32
29
33
import java .io .IOException ;
37
41
* @author Jens Wille
38
42
*
39
43
*/
44
+ @ Description ("Decodes JSON to metadata events. The \' setRecordPath\' option can be used to set a JsonPath "
45
+ + "to extract a path as JSON - or to split the data into multiple JSON documents." )
46
+ @ In (String .class )
47
+ @ Out (StreamReceiver .class )
48
+ @ FluxCommand ("decode-json" )
40
49
public final class JsonDecoder extends DefaultObjectPipe <String , StreamReceiver > {
41
50
42
51
public static final String DEFAULT_ARRAY_MARKER = JsonEncoder .ARRAY_MARKER ;
You can’t perform that action at this time.
0 commit comments