BSD Ports

devel/p5-JSON-Parse 0.62 FreeBSD

Read JSON into a Perl variable

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
78.4 KiB, 188.0 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

SystemPortVersion
FreeBSDdevel/p5-JSON-Parse0.62
NetBSDconverters/p5-JSON-Parse0.62nb4
DragonFlydevel/p5-JSON-Parse0.62
MidnightBSDdevel/p5-JSON-Parse0.62
HardenedBSDdevel/p5-JSON-Parse0.62
GhostBSDdevel/p5-JSON-Parse0.62

Install

Binary package:

pkg install p5-JSON-Parse

From the ports tree:

cd /usr/ports/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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.620.620.620.620.62
FreeBSD:14:quarterly0.620.62n/a0.620.62
FreeBSD:15:latest0.620.62n/a0.620.62
FreeBSD:15:quarterly0.620.62n/an/an/a
FreeBSD:16:latest0.620.62n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

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

Commit history 0

No commits in the history this site was built from.