How to send array of values to phoenix?

I am trying to pass an array in http request:

"[0, 'value1', 'value2']"

how can I parse it and read it in elixir?

What trouble are you having, reading it in or converting it?

If reading it, then ‘How’ are you sending it? Via the HTTP Query? Via the HTTP Path? Via the HTTP POST body? Via an HTTP Header? Etc…?

If parsing it then what trouble have you had with Poison or what else have you tried?

1 Like

I will try Poison, I just forgot its name, thank you, I send it via form params

1 Like

Ah just to parse it? Yeah your format looks like JSON, and Poison is a dead-simple JSON parser so it should do you awesomely. :slight_smile:

1 Like