Adding metric.MarshalJSON
Implementing metric.MarshalJSON better
Fixing board.MarshalJSON()