Hi everyone,
I try to merge two dictionaries and one of them contains a vector value. Unfortunately, all the merging methods used return the same error:
body = Dict(
:scope => "deposited"
)
# an optional parameter for a request to an API
statusParameter = Dict(
:status => ["pending"]
)
# body[:status] = ["pending"]
# setindex!(body, ["pending"], :status)
merge!(body, statusParameter)
Cannot
convert an object of type Vector{String} to an object of type String
I would like to achieve something like:
Dict{Symbol, Any} with 2 entries:
:status => ["pending"]
:scope => "deposited"
Does anyone know how to do it?
Best,
Josselin.