您会推荐哪个 Perl 模块用于 JSON 操作? [英] Which Perl module would you recommend for JSON manipulation?

查看:23
本文介绍了您会推荐哪个 Perl 模块用于 JSON 操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

像往常一样,我很高兴与 CPAN 打交道,因为它得到了我们需要的一切.像往常一样,我迷路了,因为有很多东西.

As usual, I'm happy to deal with CPAN because it got all we need. As usual, I'm lost because there is plenty of stuff.

我自己能找到核心JSON 一个,一个JSON::Tiny 其他.

I can find the core JSON one by myself, and feel enthusiastic by a JSON::Tiny other.

我的需求非常简单(解析来自 Open Library API 的内容),而且,也许有一天,公开我们自己的数据.

My needs are very simple (parsing stuffs from the Open Library API) and, maybe someday, expose our own data.

对于这项任务,您还有其他喜欢的模块吗?

Is there any other modules that you like for this task?

推荐答案

JSON 模块工作像一个冠军,但如果你需要一个更快的解析器,使用这个:JSON::XS,这需要本地编译.

JSON module works like a champ, but if you need a faster parser, use this one: JSON::XS, which requires a native compilation.

请注意,JSON 2.0 及更高版本只是 JSON::XS(如果已安装)或 JSON::PP(后备)的前端.

Note that JSON version 2.0 and above is merely a front end for JSON::XS (if installed) or JSON::PP (fallback).

这篇关于您会推荐哪个 Perl 模块用于 JSON 操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆