Aug 12, 2014

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:

alt text

alt text

Another new capability is support for JSONPath (see http://goessner.net/articles/JsonPath/) which is like XPath for JSON Objects.

Ex:

alt text

alt text

Finally, JsonSchema (http://json-schema.org/) support has been added:

alt text

alt text

isValid2 will return an object that indicates what the errors are.

alt text

alt text

That’s all for now!