I want to know if there is a way, in Java, to convert a JSONObject or a String with JSONObject format to MessagePack.
I tried to use MessagePackFactory but it doesn't seem to work. My JSONObject looks like :
{"value1":"value","object2":{"value3":"events","object1":{"name1":"name_1","boolean":true,"name3":"name3","name4":"name4","name5":"name6"},"object2":{},"object3":{"name7":"name7"},"value4":"value_4","value5":"value_5"},"value2":"subscribe","value3":"value3"}
I tried this in my project:
I've added a dependency in pom.xml
after I've created a class like this:
For more information you can go here (documentation) or here (Medium article)