Separated the as_json_string to provide a as_dict as well for both sets and lists.