# convert json log entries into an array of nu log entries export def `from json-lines` [] { lines | each {|it| try { $it | from json } catch { {msg: $it} }} } export def `follow json-lines` [] { lines | each {|it| try { $it | from json } catch { {msg: $it} } | table --expand | print} | ignore }