8000 GitHub - danj3/jason_tuple_list: Jason support for encoding maps from a list of tuples to control ordering
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

danj3/jason_tuple_list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JasonTupleList

This is a Jason specific companion.

JasonTupleList fills a very small gap between Maps and Keyword lists when the order of the keys needs to be controlled. Most of the time this should not matter, but some APIs are the way they are.

Installation

Sadly, at the time of this writing, the hex version of Jason (1.1.2) does not include the required function Jason.Encode.keyword. This package currently depends on the github jason master branch. his would create dependency conflicts if you require Jason anywhere else, so the internal dependency is set to override: true. This may not work in all cases.

Currently this cannot be published to hex since it depends on an unreleased version of jason. It can currently be used as such:

def deps do
  [
    {:jason_tuple_list, github: "danj/jason_tuple_list" }
  ]
end

Eventually, hopefully, the following hex instructions will apply:

The package can be installed by adding jason_tuple_list to your list of dependencies in mix.exs:

def deps do
  [
    {:jason_tuple_list, "~> 1.0.0"}
  ]
end

Documentation

Until published to hex, run mix docs to generate the docs locally.

Once on hex:

https://hexdocs.pm/jason_tuple_list

About

Jason support for encoding maps from a list of tuples to control ordering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0