JSON serialization of linked list (Saber test)