diff --git a/ptk.nim b/ptk.nim index 0e62d68..439ea66 100644 --- a/ptk.nim +++ b/ptk.nim @@ -56,7 +56,7 @@ proc loadTimeline(filename: string): Timeline = raise newException(ValueError, "unable to parse the timeline file as JSON: " & filename) - var timeline: Timeline = (name: $timelineJson["name"], marks: @[]) + var timeline: Timeline = (name: timelineJson["name"].getStr(), marks: @[]) for markJson in timelineJson["marks"]: timeline.marks.add((