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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-JSON-Parse | 0.62 |
| NetBSD | converters/p5-JSON-Parse | 0.62nb4 |
| DragonFly | devel/p5-JSON-Parse | 0.62 |
| MidnightBSD | devel/p5-JSON-Parse | 0.62 |
| HardenedBSD | devel/p5-JSON-Parse | 0.62 |
| GhostBSD | devel/p5-JSON-Parse | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.62 | 0.62 | 0.62 | 0.62 | 0.62 |
| FreeBSD:14:quarterly | 0.62 | 0.62 | n/a | 0.62 | 0.62 |
| FreeBSD:15:latest | 0.62 | 0.62 | n/a | 0.62 | 0.62 |
| FreeBSD:15:quarterly | 0.62 | 0.62 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.62 | 0.62 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
Required by 2
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
| File | Size | SHA256 |
|---|---|---|
| JSON-Parse-0.62.tar.gz | 89448 | 6273180f9392497401ddd6d820706f5aa86c1be88891dd6aab4d906b5cff66d9 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.