Core APIs
List
Merge Two JSON Object Lists on Key
1 min
merges items json object lists based on a definable matching key value in both of them the final list has the merge list combined with matching items in the input list api definition { "tab" "examples", "url" "https //orca pathfix com/functions/list/mergeonkey", "name" "merge two json object list on key api", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "28usdqyeh3qrdmtvamsqt", "code" "{\n \\"output\\" \[\n {\n \\"user id\\" \\"michelle\@pathfix com\\",\n \\"name\\" \\"mich\\",\n \\"new user id\\" \\"michelle\@pathfix com\\",\n \\"new name\\" \\"michelle\\"\n }\n ]\n}", "language" "200" }, { "id" "yix64dyiudpjgbrfsfawb", "code" "{\n \\"message\\" \\"error\\"\n}", "language" "404" } ], "selectedlanguageid" "28usdqyeh3qrdmtvamsqt" }, "examples" { "languages" \[ { "id" "encjz9tstg38f0x taa4x", "code" "{\r\n\t\\"input\\" \[{\r\n\t\t\t\\"user id\\" \\"michelle\@pathfix com\\",\r\n\t\t\t\\"name\\" \\"mich\\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\\"user id\\" \\"sophie\@pathfix com\\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\\"user id\\" \\"dominic\@pathfix com\\"\r\n\t\t}\r\n\t],\r\n\t\\"merge list\\" \[{\r\n\t\t\t\\"user id\\" \\"michelle\@pathfix com\\",\r\n\t\t\t\\"name\\" \\"michelle\\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\\"user id\\" \\"sophie\@pathfix com\\",\r\n\t\t\t\\"name\\" \\"sophie\\"\r\n\t\t}\r\n\t],\r\n \\"input key\\" \\"user id\\"\r\n\t\\"merge key\\" \\"user id\\",\r\n\t\\"merge prefix\\" \\"new \\"\r\n}", "language" "json" } ], "selectedlanguageid" "encjz9tstg38f0x taa4x" }, "description" "\ncall the following api ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }