Core APIs
List
Convert List To JSON (Based on Values)
2 min
convert a json object list to json using the values of the input list as key names and values in the output list api definition tab examples url https orca pathfix com functions list tojson name convert list format api method post request pathparameters queryparameters headerparameters bodydataparameters formdataparameters results languages id m7ipeq52kyrm6ia66pylj code n t output n t t please enter your name ron n t t please enter your title mr n t n language 200 id kxpw botv qao5luqhxyh code n message error n language 404 selectedlanguageid m7ipeq52kyrm6ia66pylj examples languages id 6yq5apu07ex8g2xqcija2 code r n t input r n t t t question please enter your name r n t t t answer ron r n t t r n t t r n t t t question please enter your title r n t t t answer mr r n t t r n t r n r n t key question r n t value answer r n t key length 100 r n language json selectedlanguageid 6yq5apu07ex8g2xqcija2 description call the following api currentnewparameter label body parameter value bodydataparameters remarks the rule key in the request is optional if drop nulls is omitted, then in the above scenario, the second item of the output list would have fullname with empty quotes