added json data functions