question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JSON Matchers does not offer "Click to see difference"

See original GitHub issue

When using a JSON matcher and the assertion fails, there is no “Click to see difference” option in IntelliJ to quickly compare them.

Working example: 401 shouldBe 402 image

JSON Example: """{"a":1}""" shouldMatchJson """{"a":2}""" image

This is very useful when comparing larger JSON objects.

Comparing the output, it looks like the JSON example values need to be wrapped in <X>.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
Kantiscommented, Nov 3, 2021

I’m not sure what kind of changes warrants a cherry-picked 4.7 release at this point. 5.0 is honestly not that far away from what I can tell, unless JetBrains run into issues with shipping Kotlin 1.6. I guess it’s up to @sksamuel 🙂

See the milestone issue, all tagged issues are done.

0reactions
Kantiscommented, Dec 2, 2021

I see what I did wrong… new fix OTW 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing two JSON objects for equality ignoring child order in ...
This method is not symmetric, as it only tests 'subset' relationship of the children, not equality. the 'other' object may have more children...
Read more >
JSONPath Match Assertion | ReadyAPI Documentation
The JSONPath Match assertion uses a JSONPath expression to select content from the target property and compare the result to the value you...
Read more >
Karate API Automation-Assertions using matcher APIs - Medium
In this post, I would be covering following topics related to Payload Assertions: Assert whole actual JSON against expected JSON using match ......
Read more >
Tasks in Visual Studio Code
Any background/watch tasks used in dependsOn with "dependsOrder": "sequence" must have a problem matcher that tracks when they are "done". The following task ......
Read more >
Setting the AWS CLI output format - AWS Documentation
For more advanced filtering that you might not be able to do with --query , you can consider jq , a command line...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found