Added handling of lists in multiple levels of the JSON nesting