Added json (un)marshaler interface to network.