changed json function param