BSD Ports

devel/p5-JSON-Parse 0.62 DragonFly

Read JSON into a Perl variable

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
81.4 KiB, 206.9 KiB installed

Description

JSON::Parse is a module for parsing JSON. (JSON means "JavaScript Object Notation" and it is specified in "RFC 7159".)

JSON::Parse offers the function "parse_json", which takes a string containing JSON, and returns an equivalent Perl structure. It also offers validation of JSON via "valid_json", which returns true or false depending on whether the JSON is correct or not, and "assert_valid_json", which produces a descriptive fatal error if the JSON is invalid. A function "json_file_to_perl" reads JSON from a file, and there is a safer version of "parse_json" called "parse_json_safe" which doesn't throw exceptions.

For special cases of parsing, there are also methods "new" and "run", which create a JSON parsing object and run it on text. See "METHODS".

JSON::Parse accepts only UTF-8 as input. See "UTF-8 only" and "Handling of Unicode".

In the other systems

The newest version among them is 0.62, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-JSON-Parse0.62 newestnone known-[email protected]-
FreeBSDdevel/p5-JSON-Parse0.62 newestnone known-[email protected]-
NetBSDconverters/p5-JSON-Parse by name0.62nb4 newestnone known-[email protected]2026-07-16
MidnightBSDdevel/p5-JSON-Parse0.62 newestno data-[email protected]-
HardenedBSDdevel/p5-JSON-Parse0.62 newestno data-[email protected]-
GhostBSDdevel/p5-JSON-Parse0.62 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install p5-JSON-Parse

From DPorts:

cd /usr/dports/devel/p5-JSON-Parse && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1