Added test code necessary

Updated examplejson.js file