Skip to content

filterx: dict_to_pairs()#810

Merged
bshifter merged 5 commits intoaxoflow:mainfrom
alltilla:filterx-dict-to-pairs
Oct 9, 2025
Merged

filterx: dict_to_pairs()#810
bshifter merged 5 commits intoaxoflow:mainfrom
alltilla:filterx-dict-to-pairs

Conversation

@alltilla
Copy link
Member

@alltilla alltilla commented Oct 2, 2025

Example usage:

dict = {
    "value_1": "foo",
    "value_2": "bar",
    "value_3": ["baz", "bax"],
};

list = dict_to_pairs(dict, "key", "value");
# Becomes:
# [
#   {"key":"value_1","value":"foo"},
#   {"key":"value_2","value":"bar"},
#   {"key":"value_3","value":["baz","bax"]}
# ]

@alltilla alltilla force-pushed the filterx-dict-to-pairs branch from 9a76224 to 3632bb8 Compare October 7, 2025 12:55
alltilla added a commit to alltilla/axosyslog that referenced this pull request Oct 7, 2025
Signed-off-by: Attila Szakacs <[email protected]>
@alltilla alltilla force-pushed the filterx-dict-to-pairs branch from 3632bb8 to 2bf3dfa Compare October 8, 2025 10:28
@alltilla alltilla requested a review from bshifter October 8, 2025 12:07
@bshifter bshifter merged commit a552912 into axoflow:main Oct 9, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants