forked from pool/perl-JSON-Parse
Accepting request 342968 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/342968 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=9
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d5fa5aa638b7ab352e3eda9c1a666114a1fa95f1548e413de9b640e81c823775
|
||||
size 57429
|
3
JSON-Parse-0.38.tar.gz
Normal file
3
JSON-Parse-0.38.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:794592ce9d73bfae14c2e0b86848a1df8490887c8958771eeadead311ef2fc47
|
||||
size 63487
|
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 8 09:52:08 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.38
|
||||
see /usr/share/doc/packages/perl-JSON-Parse/Changes
|
||||
|
||||
0.38 2015-10-30
|
||||
|
||||
* Add object interface for more flexible parsing.
|
||||
* Add "parse_json_safe" with no exceptions and hash collision detection.
|
||||
* Add choice to copy literals.
|
||||
* Better documentation of changes and examples
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 31 10:45:06 UTC 2015 - coolo@suse.com
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: perl-JSON-Parse
|
||||
Version: 0.37
|
||||
Version: 0.38
|
||||
Release: 0
|
||||
%define cpan_name JSON-Parse
|
||||
Summary: Read JSON into a Perl variable
|
||||
@@ -32,13 +32,13 @@ BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
JSON means "JavaScript Object Notation" and it is specified in the /RFC
|
||||
7159 manpage.
|
||||
|
||||
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.
|
||||
|
||||
A safer version of the same function the /parse_json_safe manpage also
|
||||
exists.
|
||||
|
||||
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
|
||||
@@ -48,11 +48,18 @@ a comparison.
|
||||
JSON::Parse also offers one convenience function to read JSON directly from
|
||||
a file, the /json_file_to_perl manpage.
|
||||
|
||||
For those who need to deal with special cases, such as JSON objects with
|
||||
non-unique names, or round-trips with JSON booleans, there is also the /new
|
||||
manpage and the /run 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 means "JavaScript Object Notation" and it is specified in the /RFC
|
||||
7159 manpage.)
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
Reference in New Issue
Block a user