This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

riccardomanfrin
I wrote a sample module that overrides Jason.Encoder.encode protocol for Map. defmodule JsonEncoder do defimpl Jason.Encoder, for: Map...
New

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
thijsvtol
I’m currently using a model button that referended is to another list of objects called items When I make a POST call to the service it ...
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
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
caslu
Hello guys! I’m developing an API only Phoenix project for pet donations, and at the moment i have the following schemas: User schema: ...
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
anuaralfetahe
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
jschaeff
Hello, I need to put binary data (read from a binary file) in a JSON structure, along other metadata. Jason.encode( %{ ...
New
ydg33
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
zlost
code defmodule LibJasonTest do use ExUnit.Case defmodule Category do @type t :: %__MODULE__{ id: Integer.t(), ...
New
EinerZG
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 Top

pankaj-ag
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
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
pejrich
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
jeroenhouben
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
adipurnama
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
Sebb
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
hudsonbay
Hello, I have a very newbie question if anyone knows. I’m using this libraries {:ex_money, "~> 5.5.1"}, {:ex_money_sql, "~> 1.4.4...
New
awochna
Some background real quick! I have an app that sends emails through AWS’s SES. I want to receive bounce notifications so I can properly m...
New
dmstocking
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
script
I configure jason in my existing application by removing the poison. But some tests are failing The error is ** (Protocol.UndefinedEr...
New
script
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
tushar
Below is the json I get after encoding it using Jason "{\"topic\": \"dummy_topic\", \"msg\": \"{\"fruit\":\"apple\",\"dish\":\"apple-pie...
New
zatae
I have a class Company (Echo.Schema) defmodule MyProject.Company do use Ecto.Schema ... @derive {Jason.Encoder, only: [:name]}...
New
Maxximiliann
(Please Note: Elixir Experience Level: Beginner) From mix.exs- defp deps do [ {:httpoison, "~> 1.6"}, {:poison, "~> 4...
New
purplesquirrel
I’m using Jason to store some maps in Postgresql. I much prefer the atom syntax for defining and accessing keys and I want to avoid half-...
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