lib/java: JsonProtocol: fixed map serialization