Returning a JSON response on successfully storing the found duplicates.