jXtoJSON: introduced support of functions