jmespath / jmespath/jmespath.py

Struggling with usage of Merge function

Open
#312 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.4k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.