Fix wrong order of parameters and change json decode to json encode
Fix wrong order of parameters and change json decode to json encode

molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec