Changes in for-loop don't apply outside loop

Works as expected.

julia> value = [Dict("price"=>Dict("price"=>x)) for x in [200.0, 200.0, 200.0, 200.0, 200.0]]
       filtered_valid_perm_array = [[2.0, 10.0, 20.0, 30.0, 40.0]]
       for good_perm in filtered_valid_perm_array
       println(good_perm)
       dupl_of_value = deepcopy(value)
           for jj in 1:length(good_perm)
           dupl_of_value[jj]["price"]["price"] = good_perm[jj]
               if jj == 1
                   println("good: ", dupl_of_value[jj]["price"]["price"])
               end
           end
           println("1 bad: ", dupl_of_value[1]["price"]["price"])
           println("1 bad: ", dupl_of_value[2]["price"]["price"])
       end
[2.0, 10.0, 20.0, 30.0, 40.0]
good: 2.0
1 bad: 2.0
1 bad: 10.0

Are you sure you’re not mistaking something else?

Can you make a minimum working example (MWE) of runnable code that shows the issue you’re concerned about, as described here: Please read: make it easier to help you?