JSON Data Bundle Updates
Barista has the Json Data bundle to help with tasks associated with manipulating/validating Json data.
Currently, the Json Data Bundle includes the JsonDataHandler library and the Automapper library (http://johnkalberer.com/2011/08/24/automapper-in-javascript/)
Today, I’ve added a few new capabilities to the Json Data bundle.
The first is a native “Merge” capability that increases performance with merging Json Objects together. This is exposed as a new function on the Object prototype:
Another new capability is support for JSONPath (see http://goessner.net/articles/JsonPath/) which is like XPath for JSON Objects.
Ex:
Finally, JsonSchema (http://json-schema.org/) support has been added:
isValid2 will return an object that indicates what the errors are.
That’s all for now!