Actually update json data handler function