script for generating case list from JSON