This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
benlime
Hey guys, I have a short and simple question, which I am currently unable to figure out using the documentation of the Jason library. ...
New
semmitmondo
How to decode a JSON object into a, for instance, keyword list while preserving the same key order that the JSON string uses? Elixir map...
New
Fl4m3Ph03n1x
Background I am trying to encode a structure into json format using the Jason library. However, this is not working as expected. Code Le...
New
walkersorlie
I’ll preface that I am very new to Elixir. I am trying to decode a paginated JSON response from my API but I am a bit lost on exactly how...
New
DarckBlezzer
Hello everyone, I’m actually studying elixir and phoenix, I’m testing phoenix I’m learning how to create a rest API JSON I’m trying to...
New
acrolink
I have already created some models and controllers using mix phx.gen.html. I need to serve context as json. My question, should I create ...
New
petrus-jvrensburg
Just for anyone else running into the same thing: I have a JSON (actually JSONB) field in Postgres that’s defined as a map field on my ec...
New
acrolink
How do you provide pagination and filtering to your Phoenix Framework JSON APIs? Couple of years ago I used Scrivener and Inquisitor but...
New
chris-menz
Hi all, I’m trying to grab some data from a txt file online and running into a strange error when trying to use Jason.decode and Poison.d...
New
MarcusRiemer
I have loads of structs defined via typed_struct and would like to serialize and deserialize these structs to and from JSON. I am current...
New
jkwchui
I have an sqlite database (Chinook, iTunes-like data), for which I have setup a simple Phoenix project. The birds eye view: Repo: Musi...
New
stuartc
I’m trying to generate a stream of JSON from an Ecto stream to be sent out via send_chunked/2 and chunk/2. It appears that all the JSON ...
New
dongwooklee96
There are two resources in an 1: N relationship: diary and photo. I want to load photos from an API into the diary. In the router, ther...
New
shahryarjb
I asked a question on Slack, and I’m now beginning to understand the dependencies and complexities involved, so I’m posting this question...
New

Trending Over Three Years Top

stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
shahryarjb
Hello, I have a struct that was made with preload, this output cannot be converted to json encode. it should be noted, I can’t use @deri...
New
theoks
I have this body for a request, which in Elixir is represented like this: body = %{ password: "my\Password" } I use Poison.encode! to...
New
afulki
Simply, I have a swagger document for a web-service, I want to validate that the response from the service (JSON) matches the format d...
New
fireproofsocks
I’ve got an Ecto schema that has a column where I store some random data from a 3rd-party provider. This is mostly just for book-keeping...
New
wernerlaude
I try to render a view as json. router: pipeline :api do plug :accepts, ["json"] end scope "/api", MyAppWeb do pipe_through :api ...
New
gavid
In JSON, it is possible in some formats (e.g. OpenAPI, React-JSON-Schema-Forms etc.) to use the $ref keyword as a rough parallel of macro...
New
foggy
I have a Phoenix api that needs to make a couple of post requests. I am fully aware that there are easier options for me than calling :ht...
New
webdeb
Hi, we have an NextJS Frontend Application which is basically React. Now we would like to use a Phoenix App as a Service for some Live d...
New
ltgaxkeh
Hi again! How do I map a multi level json (response after HTTPoison.get) Here’s my json: [ { "Payor": "ASMSI", ...
New
mcintyre1994
If I have a struct (with maybe some nested structs), and it has atom keys, what’s the most idiomatic way to get from user input in the fo...
New
mikunn
I’m trying to debug large memory spikes in our production environment. I tried to see if I could create something similar with as minimal...
New
zivkovicp
I’m new to Elixir and Phoenix and I’ve been trying to prototype a difficult solution before committing to Phoenix for my new app, but I’m...
New
jeromedoyle
Does anyone have an example of using Ecto Schemas for parsing JSON api responses? I'm curious how you can convert this { "id": 28...
New
kirqe
Hi. I'm getting binary in json response body instead of a string. It's probably because the response json is too big. What can I do in ...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement