Modify function argument from char to json