This Week's Trending
This Month's Trending
This Year's Trending
Last Three Year's Trending
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
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
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
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
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
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
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
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
How do you provide pagination and filtering to your Phoenix Framework JSON APIs?
Couple of years ago I used Scrivener and Inquisitor but...
New
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
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
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
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
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
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
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
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
I have this body for a request, which in Elixir is represented like this:
body = %{
password: "my\Password"
}
I use Poison.encode! to...
New
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
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
I try to render a view as json.
router:
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", MyAppWeb do
pipe_through :api
...
New
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
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
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
Hi again! How do I map a multi level json (response after HTTPoison.get)
Here’s my json:
[
{
"Payor": "ASMSI",
...
New
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
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
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
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
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
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Sub Categories:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







