Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json module format functions for key-value lists #8882

Open
isvilen opened this issue Oct 2, 2024 · 1 comment · May be fixed by #8889
Open

json module format functions for key-value lists #8882

isvilen opened this issue Oct 2, 2024 · 1 comment · May be fixed by #8889
Assignees
Labels
enhancement team:PS Assigned to OTP team PS

Comments

@isvilen
Copy link
Contributor

isvilen commented Oct 2, 2024

Existing json:encode_key_value_list/2 and json:encode_key_value_list_checked/2 can be used to encode key-value lists while preserve their ordering.
It will be great if json module exports corresponding
-spec format_key_value_list([{term(), term()}], Encode::formatter(), State::map()) -> iodata().
and
-spec format_key_value_list_checked([{term(), term()}], Encode::formatter(), State::map()) -> iodata().
for generating formatted JSON from key-value lists.

@dgud dgud self-assigned this Oct 2, 2024
@dgud
Copy link
Contributor

dgud commented Oct 2, 2024

A PR would increase the possibility of that to happen.

@isvilen isvilen linked a pull request Oct 2, 2024 that will close this issue
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:PS Assigned to OTP team PS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants