Subject: [bug#64327] [PATCH 1/2] gnu: Add perl-json-parse.

From: gemmaro <[email-masked]>
Date: Thu, 29 Jun 2023 00:20:21 +0900

* gnu/packages/perl.scm (perl-json-parse): New variable.
---
 gnu/packages/perl.scm | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 15d4f3a9bc0..13bf3fa84cd 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -33,7 +33,7 @@
 ;;; Copyright © 2021 Raghav Gururajan <[email-masked]>
 ;;; Copyright © 2021 Maxime Devos <[email-masked]>
 ;;; Copyright © 2022, 2023 Evgeny Pisemsky <[email-masked]>
-;;; Copyright © 2022 gemmaro <[email-masked]>
+;;; Copyright © 2022, 2023 gemmaro <[email-masked]>
 ;;; Copyright © 2023 Mădălin Ionel Patrașcu <[email-masked]>
 ;;; Copyright © 2023 Andreas Enge <[email-masked]>
 ;;; Copyright © 2023 Jake Leporte <[email-masked]>
@@ -6036,6 +6036,28 @@ (define-public perl-json-maybexs
 either uses the first module it finds or throws an error.")
     (license (package-license perl))))
 
+(define-public perl-json-parse
+  (package
+    (name "perl-json-parse")
+    (version "0.62")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://cpan/authors/id/B/BK/BKB/JSON-Parse-" version
+                    ".tar.gz"))
+              (sha256
+               (base32
+                "1nb6zxf6p42dmdmdv4c8x0dnra2sdxq21n6nvl0p8jcjjc7ihwv2"))))
+    (build-system perl-build-system)
+    (home-page "https://metacpan.org/release/JSON-Parse")
+    (synopsis "Perl Module for parsing JSON")
+    (description "@code{JSON::Parse} is a module for parsing JSON.  It offers
+@code{parse_json} which takes a string containing JSON and returns an
+equivalent Perl structure, @code{valid_json} which returns true or false
+depending on whether the JSON is correct or not, @code{assert_valid_json}
+which produces a descriptive fatal error if the JSON is invalid, and so on.")
+    (license (package-license perl))))
+
 (define-public perl-json-xs
   (package
     (name "perl-json-xs")
-- 
2.40.1