Use static types for deserializing the json messages to work around bugs in older mono versions