Messag...r::JSON(3pm)
β¨ NAME β¨
Message::Passing::Role::Filter::Encoder::JSON β bestie, this is a role that encodes your data structures as JSON so they can head out the door π
(yeah it's a 3pm page, straight out of the User Contributed Perl Documentation, and the header up top is literally truncated to Messag...r::JSON(3pm) which is so real of it π«Ά)
πΈ DESCRIPTION πΈ
okay so picture this: this filter grabs a message that's either a hash ref or an object, and serializes it to JSON. that's the whole job. that's the vibe. β¨
Plain refs work exactly as you'd expect, no surprises, no drama π
And classes generated by either of these icons:
Log::Message::StructuresMooseX::Storage
should be correctly serialized. as they should be, honestly π
π METHODS π
filter
Performs the JSON encoding. that's it. that's the method. she encodes. π
pretty
Attribute controlling if JSON is pretty printed. so if you want your JSON looking all formatted and gorgeous instead of squished onto one line, that's the one, iykyk π
π₯ SEE ALSO π₯
Message::PassingMessage::Passing::Manual::Concepts
go read these, fr fr, they're the lore π¦
π SPONSORSHIP π
This module exists due to the wonderful people at Suretec Systems Ltd. <http://www.suretecsystems.com/> who sponsored its development for its VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with the SureVoIP API - <http://www.surevoip.co.uk/support/wiki/api_documentation>
not me getting emotional over sponsorship π absolute legends, no cap π
π AUTHOR, COPYRIGHT AND LICENSE π
See Message::Passing.
(short king answer, but that's literally what it says π)
and that's the whole page bestie!! this was documented with perl v5.32.1 and dated 2021-11-09 β mwah, go encode something gorgeous πβ¨
π¦ where this page comes from
- debian bookworm: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- debian trixie: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- ubuntu jammy: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- ubuntu noble: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- ubuntu resolute: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms