您将推荐使用哪个Perl模块进行JSON操作? [英] Which Perl module would you recommend for JSON manipulation?

查看:118
本文介绍了您将推荐使用哪个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 ,并且对

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天全站免登陆