Added custom as_json_string for lists and sets.