Listing to json conversion