Adding test functionality of the JSON functions