Corrected the Java RPC exporter

Like te Python exporter, the JSON-RPC map is transmitted as a JSON
escaped string.
This should be changed in the future to a use directly a map in both
languages.