BSD Ports

devel/p5-JSON-Parse 0.62 MidnightBSD

Read JSON into a Perl variable

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl+
Categories
devel, perl5

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
MidnightBSDdevel/p5-JSON-Parse0.62 newestno data-[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
DragonFlydevel/p5-JSON-Parse0.62 newestnone known-[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:

mport install p5-JSON-Parse

From mports:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-JSON-Parse>0:devel/p5-JSON-Parse

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

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 11
  • bin/validjson
  • %%SITE_ARCH%%/JSON/Parse.pm
  • %%SITE_ARCH%%/JSON/Parse.pod
  • %%SITE_ARCH%%/JSON/Tokenize.pm
  • %%SITE_ARCH%%/JSON/Tokenize.pod
  • %%SITE_ARCH%%/JSON/Whitespace.pm
  • %%SITE_ARCH%%/JSON/Whitespace.pod
  • %%SITE_ARCH%%/auto/JSON/Parse/Parse.so
  • %%PERL5_MAN3%%/JSON::Parse.3.gz
  • %%PERL5_MAN3%%/JSON::Tokenize.3.gz
  • %%PERL5_MAN3%%/JSON::Whitespace.3.gz
distinfo 1
FileSizeSHA256
JSON-Parse-0.62.tar.gz894486273180f9392497401ddd6d820706f5aa86c1be88891dd6aab4d906b5cff66d9
Master sites 1
  • CPAN