跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

统计学 > 计算

arXiv:1403.2805 (stat)
[提交于 2014年3月12日]

标题:The jsonlite Package: A Practical and Consistent Mapping Between JSON Data and R Objects

作者:Jeroen Ooms
查看论文《The jsonlite Package: A Practical and Consistent Mapping Between JSON Data and R Objects》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:A naive realization of JSON data in R maps JSON arrays to an unnamed list, and JSON objects to a named list. However, in practice a list is an awkward, inefficient type to store and manipulate data. Most statistical applications work with (homogeneous) vectors, matrices or data frames. Therefore JSON packages in R typically define certain special cases of JSON structures which map to simpler R types. Currently there exist no formal guidelines, or even consensus between implementations on how R data should be represented in JSON. Furthermore, upon closer inspection, even the most basic data structures in R actually do not perfectly map to their JSON counterparts and leave some ambiguity for edge cases. These problems have resulted in different behavior between implementations and can lead to unexpected output. This paper explicitly describes a mapping between R classes and JSON data, highlights potential problems, and proposes conventions that generalize the mapping to cover all common structures. We emphasize the importance of type consistency when using JSON to exchange dynamic data, and illustrate using examples and anecdotes. The jsonlite R package is used throughout the paper as a reference implementation.
主题: 计算 (stat.CO); 数学软件 (cs.MS); 软件工程 (cs.SE)
引用方式: arXiv:1403.2805 [stat.CO]
  (或者 arXiv:1403.2805v1 [stat.CO] 对于此版本)
  https://doi.org/10.48550/arXiv.1403.2805

提交历史

来自:Jeroen Ooms
[v1] 2014年3月12日 星期三 04:21:10 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

stat.CO
< 上一篇   |   下一篇 >
最新 | 近期 | 2014-03
切换浏览方式为:
stat
cs.MS
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站