Implemented json marshal function, so we'll be able to get a JSON representation of the map