Search...:Cpanel(3pm)

πŸ“¦
version 8.12 Β· 5 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… NAME πŸ’…

Search::Elasticsearch::Serializer::JSON::Cpanel β€” a JSON serializer that uses Cpanel::JSON::XS, bestie. That's it, that's the whole job, and she does it flawlessly.

(also hi, this page lives in the User Contributed Perl Documentation section, and honestly? iconic of it.)


✨ VERSION ✨

version 8.12 πŸŽ€


🌸 SYNOPSIS 🌸

okay so you just... tell it to use this serializer. that's the whole vibe:

$e = Search::Elasticsearch(
    serializer => 'JSON::Cpanel'
);

like. look at her. effortless. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie β˜• β€”

the default serializer, Search::Elasticsearch::Serializer::JSON, is the chill one that tries to choose the appropriate JSON backend for you. it's flexible, it's a people pleaser, it's giving "whatever works for the group."

this module? this module does NOT do that. this module lets you pick the Cpanel::JSON::XS backend specifically. no debate, no vibes-based auto-detection, no "let me see who's available." you said Cpanel::JSON::XS, so it's Cpanel::JSON::XS. periodt. πŸ‘‘

she's committed like that.

fr fr though β€” this class does Search::Elasticsearch::Role::Serializer::JSON. that's the whole personality. 🫢

πŸŽ€ SEE ALSO πŸŽ€

  • Search::Elasticsearch::Serializer::JSON β€” the default one, the flexible one, the one that chooses for you
  • Search::Elasticsearch::Serializer::JSON::XS β€” the JSON::XS girlies
  • Search::Elasticsearch::Serializer::JSON::PP β€” the pure-Perl JSON::PP representation

go read them, they're all slay in their own way πŸ’–


🌈 AUTHOR 🌈

Enrico Zimuel <enrico.zimuel@elastic.co> β€” ty for your service king 🫑✨


This software is Copyright (c) 2024 by Elasticsearch BV.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004

like, actually free free. go wild. responsibly. πŸ’œ


and that's the page, bestie!! written for perl v5.38.2, dated 2024-02-04 β€” tysm for reading, mwah πŸ’‹πŸ’–βœ¨

πŸ“¦ where this page comes from