Core APIs
List
Convert List Format
2 min
convert a list from one format to another processing rule description drop nulls will remove all values from the json where the value is null replace empty with null will replace all json property values that have and empty string ("") with null api definition { "tab" "examples", "url" "https //orca pathfix com/functions/list/tolist", "name" "convert list format api", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "m7ipeq52kyrm6ia66pylj", "code" "{\n\t\\"output\\" \[{\n\t\t\\"emailaddress\\" \\"john doe\@domain com\\",\n\t\t\\"fullname\\" \\"john doe\\"\n\t}, {\n\t\t\\"emailaddress\\" \\"jane doe\@domain com\\"\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\\"email\\" \\"john doe\@domain com\\",\r\n\t\t\\"name\\" \\"john doe\\"\r\n\t}, {\r\n\t\t\\"email\\" \\"jane doe\@domain com\\"\r\n\t}],\r\n\t\\"output\\" {\r\n\t\t\\"emailaddress\\" \\"{{email}}\\",\r\n\t\t\\"fullname\\" \\"{{name}}\\"\r\n\t},\r\n\t\\"rule\\" {\r\n\t\t\\"drop nulls\\" true,\r\n\t\t\\"replace empty with null\\"\ true\r\n\t}\r\n}", "language" "json" } ], "selectedlanguageid" "6yq5apu07ex8g2xqcija2" }, "description" "call the following api ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }