proofgeist / fm-json-additions

MIT License
27 stars 12 forks source link

Support for deep merge #20

Open davegraham92120 opened 6 years ago

davegraham92120 commented 6 years ago

Here's a modified JSON.Merge function that performs a deep merge. There's a new test, and all tests are passing. Can you please have a look and help make sure it's solid?

JSONAdditions-GH 20.fmp12.zip

davegraham92120 commented 6 years ago

I found and fixed an issue where a deep merge would fail if the sourceValue is an object and there was no target object. See the revised file with the fix and new test. All tests are passing. JSONAdditions-GH 20v2.fmp12.zip