github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/processors/merge_json.md (about) 1 --- 2 title: merge_json 3 type: processor 4 status: deprecated 5 --- 6 7 <!-- 8 THIS FILE IS AUTOGENERATED! 9 10 To make changes please edit the contents of: 11 lib/processor/merge_json.go 12 --> 13 14 import Tabs from '@theme/Tabs'; 15 import TabItem from '@theme/TabItem'; 16 17 :::warning DEPRECATED 18 This component is deprecated and will be removed in the next major version release. Please consider moving onto [alternative components](#alternatives). 19 ::: 20 21 22 <Tabs defaultValue="common" values={[ 23 { label: 'Common', value: 'common', }, 24 { label: 'Advanced', value: 'advanced', }, 25 ]}> 26 27 <TabItem value="common"> 28 29 ```yaml 30 # Common config fields, showing default values 31 label: "" 32 merge_json: 33 retain_parts: false 34 ``` 35 36 </TabItem> 37 <TabItem value="advanced"> 38 39 ```yaml 40 # All config fields, showing default values 41 label: "" 42 merge_json: 43 retain_parts: false 44 parts: [] 45 ``` 46 47 </TabItem> 48 </Tabs> 49 50 51 The functionality of this processor depends on being applied across messages 52 that are batched. You can find out more about batching [in this doc](/docs/configuration/batching). 53 54 ## Fields 55 56 ### `retain_parts` 57 58 Whether messages that are merged should also have their original contents preserved. 59 60 61 Type: `bool` 62 Default: `false` 63 64 ### `parts` 65 66 An optional array of message indexes of a batch that the processor should apply to. 67 If left empty all messages are processed. This field is only applicable when 68 batching messages [at the input level](/docs/configuration/batching). 69 70 Indexes can be negative, and if so the part will be selected from the end 71 counting backwards starting from -1. 72 73 74 Type: `array` 75 Default: `[]` 76 77 ## Alternatives 78 79 All functionality of this processor has been superseded by the 80 [bloblang](/docs/components/processors/bloblang) processor. 81