forked from pool/perl-JSON-Parse
Accepting request 340726 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/340726 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
6a5771b06d
commit
b06c3aeae0
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: perl-JSON-Parse
|
||||
Version: 0.33
|
||||
Version: 0.36
|
||||
Release: 0
|
||||
%define cpan_name JSON-Parse
|
||||
Summary: Read JSON into a Perl variable
|
||||
@@ -35,19 +35,23 @@ BuildRequires: perl-macros
|
||||
JSON means "JavaScript Object Notation" and it is specified in the /RFC
|
||||
7159 manpage.
|
||||
|
||||
JSON::Parse converts JSON into the nearest equivalent Perl. The function
|
||||
the /parse_json manpage takes one argument, a string containing JSON, and
|
||||
returns a Perl reference or scalar. The input to 'parse_json' must be a
|
||||
complete JSON structure.
|
||||
JSON::Parse offers the function the /parse_json manpage, which takes one
|
||||
argument, a string containing JSON, and returns a Perl reference or scalar.
|
||||
The input to 'parse_json' must be a complete JSON structure.
|
||||
|
||||
JSON::Parse also offers two validation functions, the /valid_json manpage,
|
||||
which returns true or false, and the /assert_valid_json manpage, which
|
||||
produces a descriptive fatal error if the JSON is invalid. These act at a
|
||||
higher speed than the /parse_json manpage. See the /PERFORMANCE manpage for
|
||||
a comparison.
|
||||
|
||||
JSON::Parse also offers one convenience function to read JSON directly from
|
||||
a file, the /json_file_to_perl manpage.
|
||||
|
||||
JSON::Parse accepts only UTF-8 as input. If its input is marked as Unicode
|
||||
characters, the strings in its output are also marked as Unicode
|
||||
characters. If its input contains Unicode escapes of the form \u3000, its
|
||||
output is upgraded to Unicode character strings.
|
||||
|
||||
JSON::Parse also offers two high speed validation functions, the
|
||||
/valid_json manpage and the /assert_valid_json manpage, and a function to
|
||||
read JSON from a file, the /json_file_to_perl manpage.
|
||||
characters. If its input contains Unicode escapes of the form '"\u3000"',
|
||||
its output is upgraded to Unicode character strings.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
Reference in New Issue
Block a user