arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.14323cs.SE
收藏

Java JSON库的行为多样性

The Behavioral Diversity of Java JSON Libraries

Nicolas Harrand, Thomas Durieux, David Broman, Benoit Baudry

摘要:

JSON是跨科学计算、Web API或配置管理领域的重要文件和数据格式。它的流行推动了大量的软件开发工作,以构建多个库来处理JSON数据。以往的研究集中在这些库之间的性能比较,缺乏软件工程的perspectives.We提出了第一个系统的分析和比较的输入/输出行为的20个JSON库,在一个单一的软件生态系统:Java/Maven。我们通过对473个JSON文件(包括格式正确和格式错误的文件)的集合运行每个库来评估行为多样性。影响库行为的主要设计差异与表示JSON对象的数据结构的选择和数字的编码有关。我们观察到一个显着的行为多样性与病态的文件,或角落的情况下,如大量或重复的数据。我们对JSON库的独特行为评估为通过多版本架构对格式错误的文件进行稳健处理铺平了道路。

英文摘要:

JSON is an essential file and data format in do-mains that span scientific computing, web APIs or configuration management. Its popularity has motivated significant software development effort to build multiple libraries to process JSON data. Previous studies focus on performance comparison among these libraries and lack a software engineering perspective.We present the first systematic analysis and comparison of the input / output behavior of 20 JSON libraries, in a single software ecosystem: Java/Maven. We assess behavior diversity by running each library against a curated set of 473 JSON files, including both well-formed and ill-formed files. The main design differences, which influence the behavior of the libraries, relate to the choice of data structure to represent JSON objects and to the encoding of numbers. We observe a remarkable behavioral diversity with ill-formed files, or corner cases such as large numbers or duplicate data. Our unique behavioral assessment of JSON libraries paves the way for a robust processing of ill-formed files, through a multi-version architecture.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑