Coder Social home page Coder Social logo

elixir-iteraptor's Introduction

elixir-iteraptor's People

Contributors

am-kantox avatar mudasobwa avatar sitch avatar xaviernouvilas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

elixir-iteraptor's Issues

Add `:keys` option .jsonify

Similar to the :values option to transform atom values to keys, it would be occasionally useful to have a keys: boolean() option to either maintain they key or stringy it

Example

data = %{a: %{b: 2}}

[keys: true] (Default)

Interaptor.stringify(data)
iex> %{"a" => %{"b" => 2}}

[keys: false]

Interaptor.stringify(data, keys: false)
%{a: %{b: 2}}

I think in some ways this kind of violates the expectation of what a jsonify would do. I was originally just looking for a decent protocol for something to perform a deep_unstruct which would just cast structs to maps and probably certain types (dates/datetimes/etc) to strings.

Let me know your thoughts -- its a very straight forward addition

Add `stringify_keys` method

Iteraptor.stringify_keys/1 method should prepare the term to be JSON-interchangeable.

map → map
Keyword.t → map

Iterate thought MapSet

Hi, Thanks for package!
Need such feature: iterate thought MapSet
That's would be great!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.