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

Add Json.Encode.dict #484

Closed
avh4 opened this Issue Jan 17, 2016 · 9 comments

Comments

Projects
None yet
7 participants
@avh4
Member

avh4 commented Jan 17, 2016

There is a JSON decoder for Dict, but currently there is no corresponding encoder.

module Json.Encode where

dict : (v -> Value) -> Dict String v -> Value
-- or
dict : Dict String Value -> Value
@narkisr

This comment has been minimized.

Show comment
Hide comment
@narkisr

narkisr commented Jan 25, 2016

+1

@cullophid

This comment has been minimized.

Show comment
Hide comment
@cullophid

cullophid Mar 27, 2016

+1
How do you get around this atm?
Do you have to convert all ducts to lists?

cullophid commented Mar 27, 2016

+1
How do you get around this atm?
Do you have to convert all ducts to lists?

@cullophid

This comment has been minimized.

Show comment
Hide comment
@cullophid

cullophid Mar 27, 2016

Thank you:)

cullophid commented Mar 27, 2016

Thank you:)

@vilinski

This comment has been minimized.

Show comment
Hide comment
@vilinski

vilinski commented Aug 16, 2016

+1

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
Contributor

jvoigtlaender commented Aug 16, 2016

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender
Contributor

jvoigtlaender commented Aug 16, 2016

@lukewestby

This comment has been minimized.

Show comment
Hide comment
@lukewestby

lukewestby Aug 16, 2016

Member

i'd like to add a Json.Encode.Extra to elm-community/json-extra, and dict is a great fit for such a module

Member

lukewestby commented Aug 16, 2016

i'd like to add a Json.Encode.Extra to elm-community/json-extra, and dict is a great fit for such a module

@evancz evancz referenced this issue Aug 16, 2016

Open

API Ideas #322

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Aug 16, 2016

Member

With feature suggestions like this, I think the best route is to (1) tell folks about *-extra packages and (2) close the issue and add it to something like #322. That's what makes sense in this case at least.

Member

evancz commented Aug 16, 2016

With feature suggestions like this, I think the best route is to (1) tell folks about *-extra packages and (2) close the issue and add it to something like #322. That's what makes sense in this case at least.

@evancz evancz closed this Aug 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment