Skip to content

Struggling with usage of Merge function #312

@ChaitanyaKandala

Description

@ChaitanyaKandala

Hi,
I am trying to pass 2 dicts/arrays to the merge but I am not able to figure out how to do that. Can I get some help here please?
I tried various things but I can only get this to work.
print(jmespath.search('merge({"a":"b"}, {"a":"c", "b":"z"})', {}))

What do I do if I need to pass arguments? Like I have these 2 dictionaries.
one = {"a":"b"} two = {"a":"c", "b":"z"}
What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions