Added json wrapper/unwrapper for server/client responses/requests.