Added possibility of functions to json spec