Types in JSON

By: Choroba from Prague.pm
Date: Wednesday, 15 August 2018 11:50
Duration: 20 minutes
Target audience: Intermediate
Language: English
Tags: json types

You can find more information on the speaker's site:


Strongly typed languages differentiate strings and numbers much more than Perl. When sending JSON to a client written in such a language, it's easy to break the contract by just inspecting one of the values, or by upgrading Perl itself.

Cpanel::JSON::XS::Type to the rescue! I'll explain its motivation, show usage and possible traps, describe the implementation, and discuss related problems in other modules.


Attended by: Choroba, Barbie, Lee Johnson, Tina Müller (‎tinita‎), Dave Cross (‎davorg‎), Kenichi Ishigaki (‎charsbar‎), Wolfgang Pecho, Dagfinn Ilmari Mannsåker (‎ilmari‎), Aaron Rowe, Thomas Klausner (‎domm‎), Renee Bäcker (‎reneeb‎), Kivanc Yazan, Thorsten Pape, Tori, Ilya Chesnokov (‎ichesnokov‎), Daniel Mita (‎⚡🍡‎), Sorin Pop (‎finger‎), Andreea Hosu (‎Andreea‎), Wesley Schwengle (‎waterkip‎), Igor Bujna, Johnathan Swan, Nikolas Kuimcidis, Snorri Briem, Andrew Beech, Abe Timmerman (‎abeltje‎), Chris Jack, marc chantreux (‎eiro‎), Jan Seidl (‎JaSei‎), Theo van Hoesel (‎vanHoesel‎), Andrew Solomon (‎illy‎), Patrick Ringl (‎pari‎), Paul Evans (‎LeoNerd‎), Michael Lush, Aaron Crane (‎arc‎), Max Maischein (‎Corion‎), Sam Anderson (‎Sam‎), Søren Lund (‎slu‎), John Lightsey (‎J.D.‎), Steffen Winkler (‎STEFFENW‎), Richard van Lochem (‎rvlochem‎), Andreas Boesen (‎Happy‎), Ingy döt Net (‎ingy‎), Simon Proctor (‎Scimon‎), scott, Andrew Nugged (nugged), Richard Newsham (‎rnewsham‎)

Community Sponsors

Enlightened Perl Organisation Magnum Solutions Logo Perl6 Community Perl Weekly