add static methods for converting List to jsonArray and vice versa