Hey @Jon,
Thanks for your reply! I’ll try to explain.
The main idea of my question is related to some king of architectural/logic behaviour of a system. When I try to solve any problem with existing tools I keep in mind how these tools work.
For example - if I use Rename Keys
I know what will happen and I’ll get some predictable result.
[
{
"key": "value"
}
]
Rename key
to key_renamed
will give the ouput that I can predict:
[
{
"key_renamed": "value"
}
]
The more complicated example:
[
{
"parent_object": {
"child_key": "value"
}
}
]
Here I know that if I’ll use the “dot notation” on the child key and rename parent_object.child_key
to parent_object.child_key_renamed
I’ll get:
[
{
"parent_object": {
"child_key_renamed": "value"
}
}
]
The result will not became something like this:
[
{
"parent_object": {
},
"parent_object.child_key_renamed": "value"
}
]
And this is predictable and expectable for me.
Ok, now I’ll try to rewrite the start topic example (this was simplified syntechic example) to be a little bit more understandable from the practical poin of view:
[
{
"some_content": {
"some_property_1_i_want_to_keep": "some_value1",
"some_property_2_i_want_to_keep": "some_value2",
"some_items_i_want_to_split_out_and_give_a_new_name_but_keep_as_a_child_of_parent_item": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
}
]
}
}
]
I have a some_content
object with two properties and an array of several items. I want to split out this array and keep both properties in splitted out items. So I use Item Lists
with Split out items
option. At this moment I already know that if I use the “dot notation” I’ll get result similar to results above (like parent_object.child_key
).
So I expect, that if I
- Set
Fields To Split Out
= some_content.some_items_i_want_to_split_out_and_give_a_new_name_but_keep_as_a_child_of_parent_item
and
- Set
Destination Field Name
= some_content.some_item_splitted
(to keep a name)
- Plus set
Include
= All Other Fields
and
- Keep
Disable Dot Notation
unset
I’ll get the next output:
[
{
"some_content": {
"some_property_1_i_want_to_keep": "some_value1",
"some_property_2_i_want_to_keep": "some_value2",
"some_item_splitted": {
"id": 1
}
}
},
{
"some_content": {
"some_property_1_i_want_to_keep": "some_value1",
"some_property_2_i_want_to_keep": "some_value2",
"some_item_splitted": {
"id": 2
}
}
},
{
"some_content": {
"some_property_1_i_want_to_keep": "some_value1",
"some_property_2_i_want_to_keep": "some_value2",
"some_item_splitted": {
"id": 3
}
}
}
]
But this is wrong expectation from my side and I’ll get:
[
{
"some_content": {
"some_property_1_i_want_to_keep": "some_value1",
"some_property_2_i_want_to_keep": "some_value2"
},
"some_content.some_item_splitted": {
"id": 1
}
},
{
"some_content": {
"some_property_1_i_want_to_keep": "some_value1",
"some_property_2_i_want_to_keep": "some_value2"
},
"some_content.some_item_splitted": {
"id": 2
}
},
{
"some_content": {
"some_property_1_i_want_to_keep": "some_value1",
"some_property_2_i_want_to_keep": "some_value2"
},
"some_content.some_item_splitted": {
"id": 3
}
}
]
This is confusing to me.