line name      date closed                  nimt junction                   terminus   length
0          auckland - newmarket line             open             quay park junction         newmarket junction   2.5 km
1                north auckland line             open             westfield junction            otiria junction   280 km
2                     manukau branch             open                  wiri junction                    manukau   2.5 km
3                mission bush branch             open               paerata junction               mission bush    17 km
4                     kimihia branch             open                   huntly north               kimihia mine  2.75 km
5                    rotowaro branch             open                         huntly                   rotowaro   8.5 km
6     waipa railway and coal co line    19 - 5 - 1958                    ngaruawahia          wilton collieries  10.5 km
7      east coast main trunk railway             open              frankton junction                    kawerau   180 km
8         stratford - okahukura line  mothballed 2009             okahukura junction                  stratford   144 km
9                     raetihi branch     1 - 1 - 1968               ohakune junction                    raetihi    13 km
10        marton - new plymouth line             open                marton junction  breakwater (new plymouth)   212 km
11                     taonui branch    14 - 8 - 1895                         taonui                    colyton   3.5 km
12  palmerston north - gisborne line             open                roslyn junction                   gisborne   391 km
13                     foxton branch    18 - 7 - 1959              longburn junction                     foxton    31 km
14                    wairarapa line             open  distant junction (wellington)                  woodville   170 km
15               johnsonville branch             open            wellington junction               johnsonville    10 km
16                     te aro branch    23 - 4 - 1917           wellington (lambton)                     te aro  1.77 km

Table as JSON:
{"line name":{"0":"auckland - newmarket line","1":"north auckland line","2":"manukau branch","3":"mission bush branch","4":"kimihia branch","5":"rotowaro branch","6":"waipa railway and coal co line","7":"east coast main trunk railway","8":"stratford - okahukura line","9":"raetihi branch","10":"marton - new plymouth line","11":"taonui branch","12":"palmerston north - gisborne line","13":"foxton branch","14":"wairarapa line","15":"johnsonville branch","16":"te aro branch"},"date closed":{"0":"open","1":"open","2":"open","3":"open","4":"open","5":"open","6":"19 - 5 - 1958","7":"open","8":"mothballed 2009","9":"1 - 1 - 1968","10":"open","11":"14 - 8 - 1895","12":"open","13":"18 - 7 - 1959","14":"open","15":"open","16":"23 - 4 - 1917"},"nimt junction":{"0":"quay park junction","1":"westfield junction","2":"wiri junction","3":"paerata junction","4":"huntly north","5":"huntly","6":"ngaruawahia","7":"frankton junction","8":"okahukura junction","9":"ohakune junction","10":"marton junction","11":"taonui","12":"roslyn junction","13":"longburn junction","14":"distant junction (wellington)","15":"wellington junction","16":"wellington (lambton)"},"terminus":{"0":"newmarket junction","1":"otiria junction","2":"manukau","3":"mission bush","4":"kimihia mine","5":"rotowaro","6":"wilton collieries","7":"kawerau","8":"stratford","9":"raetihi","10":"breakwater (new plymouth)","11":"colyton","12":"gisborne","13":"foxton","14":"woodville","15":"johnsonville","16":"te aro"},"length":{"0":"2.5 km","1":"280 km","2":"2.5 km","3":"17 km","4":"2.75 km","5":"8.5 km","6":"10.5 km","7":"180 km","8":"144 km","9":"13 km","10":"212 km","11":"3.5 km","12":"391 km","13":"31 km","14":"170 km","15":"10 km","16":"1.77 km"}}