textproc/p5-XML-XML2JSON 0.06_1 FreeBSD
Convert XML into JSON (and back again) using XML::LibXML
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- textproc, perl5
- Package size
- 12.5 KiB, 29.5 KiB installed
Description
XML::XML2JSON is a Perl module to convert XML to JSON (and JSON to XML) using the following rules from Google (http://code.google.com/apis/gdata/json.html):
Basic:
- The feed is represented as a JSON object; each nested element or attribute is represented as a name/value property of the object.
- Attributes are converted to String properties.
- Child elements are converted to Object properties.
- Elements that may appear more than once are converted to Array properties.
- Text values of tags are converted to $t properties.
Namespace:
- If an element has a namespace alias, the alias and element are concatenated using "$". For example, ns:element becomes ns$element.
XML:
- XML version and encoding attributes are converted to version and encoding attributes of the root element, respectively.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/p5-XML-XML2JSON | 0.06_1 |
| DragonFly | textproc/p5-XML-XML2JSON | 0.06_1 |
| HardenedBSD | textproc/p5-XML-XML2JSON | 0.06_1 |
| GhostBSD | textproc/p5-XML-XML2JSON | 0.06_1 |
Install
Binary package:
pkg install p5-XML-XML2JSON
From the ports tree:
cd /usr/ports/textproc/p5-XML-XML2JSON/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-XML-XML2JSON>0:textproc/p5-XML-XML2JSON
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.06_1 | 0.06_1 | 0.06_1 | 0.06_1 | 0.06_1 |
| FreeBSD:14:quarterly | 0.06_1 | 0.06_1 | n/a | 0.06_1 | 0.06_1 |
| FreeBSD:15:latest | 0.06_1 | 0.06_1 | n/a | 0.06_1 | 0.06_1 |
| FreeBSD:15:quarterly | 0.06_1 | 0.06_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.06_1 | 0.06_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-XML-LibXML>=1.59: textproc/p5-XML-LibXML
Runtime 1
p5-XML-LibXML>=1.59: textproc/p5-XML-LibXML
The full lists below include those, and their dependencies in turn.
Build dependencies 9
Run dependencies 9
Required by 1
Configuration
Options name: textproc_XML-XML2JSON
| Option | Default | Description |
|---|---|---|
| JSON | off | Use JSON |
| JSON_DWIW | off | Use JSON::DWIW |
| JSON_SYCK | on | Use JSON::Syck |
| JSON_XS | off | Use JSON::XS |
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/XML/XML2JSON.pm
- %%PERL5_MAN3%%/XML::XML2JSON.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| XML-XML2JSON-0.06.tar.gz | 24504 | a4d0d081387533d3b6dff15ee4aebe32534073ef61a6a1cf00f515e1baa3fc7a |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.