Search...r::JSON(3pm)
π Search::Elasticsearch::Serializer::JSON π
okay bestie, this is Search::Elasticsearch::Serializer::JSON β the default JSON Serializer, and it's out here doing its thing with JSON::MaybeXS. no cap. π
β¨ VERSION β¨
version 8.12 β she's giving current, she's giving slay π
π¦ SYNOPSIS π¦
$e = Search::Elasticsearch(
# serializer => 'JSON'
);
like... that's it. that's the whole vibe. the default already is 'JSON', so you don't even gotta say it (iykyk). πΈ
π DESCRIPTION π
So this default Serializer class is lowkey a little matchmaker β it picks between three whole JSON backends like it's casting a main character:
Cpanel::JSON::XSJSON::XSJSON::PP
Here's the tea on how it chooses π:
First, it peeks to see if either Cpanel::JSON::XS or JSON::XS is already loaded β and if one of them is, boom, it just uses the appropriate backend right then and there. no drama, no loading anything new. β¨
Otherwise? It goes down the list and tries to load them in order: first Cpanel::JSON::XS, then JSON::XS, and finally JSON::PP. so if the fancy ones aren't around, JSON::PP is there as the reliable bestie who always shows up. π«Ά
But wait β what if you're picky and you want a specific JSON backend? iconic of you, honestly. You can do that by using one of these modules instead:
Search::Elasticsearch::Serializer::JSON::CpanelSearch::Elasticsearch::Serializer::JSON::XSSearch::Elasticsearch::Serializer::JSON::PP
See their documentation for the details, babe β they each got their own whole thing going on. π
π AUTHOR π
Enrico Zimuel <enrico.zimuel@elastic.co> β yes, the author, we stan π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2024 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
so like, go forth, use it, it's free fr fr. no gatekeeping. β
and that's the whole page, bestie!! this lil writeup is from perl v5.38.2, dated 2024-02-04, and it's the manual for Search::Elasticsearch::Serializer::JSON(3pm). go serialize something gorgeous π β¨π¦
π¦ where this page comes from
- debian trixie: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu noble: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu resolute: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu stonking: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms