You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You merge() expression has five arguments.
The third expression (orig.modules.module_dynamic.{ … }) evaluates to a null JSON value (or NoneType in Python).
From the specification, the merge() function accepts only arguments of object type.
Thus, as far as I can tell, the result of your expression SHOULD raise an error.
The fact that the official JS library does not is a non-compliant behaviour in my mind.
Hi
Environment: Python 3.11.9 + pip 24.3.1
LIbrary: jmespath 1.0.1
I'm trying to use jmespath to extract some fields from the JSON file. But I got differnt results from the JS library and Python library.
test.json
It's ok, when I use jmespath playground.
![image](https://private-user-images.githubusercontent.com/185899181/389186745-38853bd6-435e-4bf9-a5d2-9c6bd1e26c15.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjQ4MjgsIm5iZiI6MTczOTM2NDUyOCwicGF0aCI6Ii8xODU4OTkxODEvMzg5MTg2NzQ1LTM4ODUzYmQ2LTQzNWUtNGJmOS1hNWQyLTljNmJkMWUyNmMxNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQxMjQ4NDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NTdiMmQ0YTI3MjM1NjFhYTZmOTEzYmJjZTQ5MWE1NTNjMzEwMzJiYjdjN2U3NzRlYmJlYzg0ZGYzMjA4NTRiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Vb8wpD3wOuHbR3N640BZQ__XF40IW2wckQPveyiceGI)
But when I use the python lib, I got this type error. Looks likes the python library don't merge none values in the merge function.
The text was updated successfully, but these errors were encountered: