There are simple and useful functions developed for JSONs.
github.com/oktaykose/json-addons
oktaykose/json-addons