Closed shubhankar-mern closed 10 months ago
This change introduces a new utility function compareJSONObject
in the JSONUtils
module. It compares two JSON objects and returns the differences. A corresponding test case has been added to ensure the function works as expected.
File | Summary |
---|---|
lib/utility/JSONUtils/index.ts |
Introduced a new type JSONValue and a function compareJSONObject that compares two JSON objects and returns the differences. |
lib/tests/JSONUtils/test.spec.ts |
Added a test case for the compareJSONObject function. The test creates two sample JSON objects, compares them, and asserts the result. |
🐇
In the land of code, where the shadows lie,
A rabbit hops, its gaze held high.
With each key press, a new world born,
In the heart of JSON, a new dawn is drawn.
Comparing objects, finding what's new,
Celebrating changes, for me and for you. 🎉
hi @shravan20 what is failing? The eslint check?
hi @shravan20 what is failing? The eslint check?
This shouldnt be an issue. PR LGTM
This PR adds the proposed functionality of Create a utility method to compare two JSON objects, highlighting the differences between them.
@shravan20 Please Review and Merge
Summary by CodeRabbit
compareJSONObject
function in theJSONUtils
module. This function compares two JSON objects and returns an object detailing the differences. This feature will help developers identify discrepancies between JSON objects more efficiently.compareJSONObject
function to ensure its accuracy and reliability. This test validates the function's ability to handle nested objects and various key modifications.