diff --git a/data/review/split_field/result_2.json b/data/review/split_field/result_2.json index ab261e8..769b7d7 100644 --- a/data/review/split_field/result_2.json +++ b/data/review/split_field/result_2.json @@ -5,8 +5,6 @@ "others" : [ { "tools" : "hammer--saw--bow" } ], - "OTHERS" : [ { - "tools" : "hammer--saw--bow" - } ], + "OTHERS" : [ ], "animals" : [ "dog", "cat", "zebra" ] } diff --git a/data/review/split_field/split_field_2.fix b/data/review/split_field/split_field_2.fix index fa510e0..03543a1 100644 --- a/data/review/split_field/split_field_2.fix +++ b/data/review/split_field/split_field_2.fix @@ -8,8 +8,9 @@ move_field("people.investigators","people.investigators[]") # This still does not work: # split_field("others[].*.tools","--") # do list("others[]") -# move_field("tools","tails[]") +# move_field("tools","tails[]") # end -# split_field("OTHERS[].1.tools","--") -# move_field("OTHERS[].1.tools","OTHERS[].1.tails[]") \ No newline at end of file +# This results in empty array: +split_field("OTHERS[].1.tools","--") +move_field("OTHERS[].1.tools","OTHERS[].1.tools[]") \ No newline at end of file