Java Serialization vs JSON vs XML

Posted 每天更强一点...

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java Serialization vs JSON vs XML相关的知识,希望对你有一定的参考价值。

References:

[1] http://rick-hightower.blogspot.co.uk/2014/04/which-is-faster-java-object.html

[2] https://www.darkreading.com/informationweek-home/why-the-java-deserialization-bug-is-a-big-deal/d/d-id/1323237?

 

1. Never use Java Serialization ever, major security flaws. Use JSON or XML to translate object into Strings not bytes.

2. Jackson JSON serialization is much faster than built in Java object serialization.

Boon JSON serialization is much faster than Jackson JSON serialization.

以上是关于Java Serialization vs JSON vs XML的主要内容,如果未能解决你的问题,请参考以下文章

请求帮助,Runtime.Serialization.SerializationException

Java Serialization

c#中using System.Runtime.Serialization.Json;不能引用

serialization机制

Android Serialization序列化

Java Serialization可以将对象反序列化为父类的实例