Is there a recommended method for passing a long list of IP addresses and accompanying data from C# code behind to an external JavaScript function? The list could potentially contain over 1000 items, so efficiency is key. Can you offer a concise example of the most effective approach, such as using JSON serialization?