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
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
Hello,
I need to put binary data (read from a binary file) in a JSON structure, along other metadata.
Jason.encode(
%{
...
New
Hi,
I’m trying to build a multi-platform Docker image based on elixir:1.17-otp-27. However, I’ve encountered an issue: the jason library...
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
Hello!
I’m trying to set up a small Elixir app that depends on jason via another package. Using mix release works, but as soon as I set ...
New
code
defmodule LibJasonTest do
use ExUnit.Case
defmodule Category do
@type t :: %__MODULE__{
id: Integer.t(),
...
New
Hi all, I have a problem with the generation of a hash. I have a Javascript code that takes the body of a request, passes it to a string ...
New
Trending Over Three Years
Hello
Let me define the problem first.
I have a jsonb database column called results in my Postgres DB. When I save a value (i.e 12\25)...
New
I have a struct I’m trying to derive called Geo.Point. I don’t own it.
require Protocol
Protocol.derive(Jason.Encoder, Geo.Point, only: ...
New
I’m reading the options in Jason.decode but the docs don’t explain it well enough for me to fully understand the pros and cons of the opt...
New
I’m trying to seed data to phoenix database using json file.
Let’s say I have at priv/repo/seeds/some_file.json in my phoenix directory....
New
In Jason/Poison it is possibe to encode tuple values using
defimpl Encoder, for: Tuple do
def encode(data, options) when is_tuple(data...
New
I configure jason in my existing application by removing the poison. But some tests are failing The error is
** (Protocol.UndefinedEr...
New
In the docs its mentioned that we can implement the custom data types with jason instead of for: Any. But what if i wanted to write it fo...
New
I have an existing camelCase JSON API that I can’t change and I want to be able to continue to use elixir snake_case naming conventions. ...
New
Below is the json I get after encoding it using Jason
"{\"topic\": \"dummy_topic\", \"msg\": \"{\"fruit\":\"apple\",\"dish\":\"apple-pie...
New
I have a class Company (Echo.Schema)
defmodule MyProject.Company do
use Ecto.Schema
...
@derive {Jason.Encoder, only: [:name]}...
New
(Please Note: Elixir Experience Level: Beginner)
From mix.exs-
defp deps do
[
{:httpoison, "~> 1.6"},
{:poison, "~> 4...
New
Hi all - I might have dug my own grave by going down this path, but now I’m just curious… What is the best way to re-cast data after deco...
New
Hello guys, I’m wondering what is the correct way of compiling big json files. There is this json file I’ll be needing for analytics, yet...
New
Phoenix automatically wraps array request inside a _json field and make it an object. eg I am sending below body
[
{
"activ...
New
Background
I have a TypedStruct with an optional field, :rank. This field is sometimes present and sometimes not.
@derive Jason.Encode...
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
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #ash-questions
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #discussion
- #javascript
- #elixirconf
- #library
- #oban-questions
- #dialyzer
- #docker
- #onsite
- #authentication
- #podcasts
- #full-time-contract
- #umbrella
- #code-sync
- #ecto-query
- #phoenix_html
- #iex
- #graphql
- #genstage
- #elixir-ls
- #nerves-questions
- #podcasts-by-brainlid
- #supervisor
- #websockets
- #distillery
- #advent-of-code
- #blog-post
- #livebook-questions
- #processes
- #forms
- #api
- #metaprogramming







