Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.
/ zerial Public archive

Basic JSON serialization

License

Notifications You must be signed in to change notification settings

Zimpler/zerial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zerial

Serializer/Deserializer tools

Installation

Add this line to your application's Gemfile:

gem 'zerial'

And then execute:

$ bundle

Or install it yourself as:

$ gem install zerial

Usage

A serializer is an object with 4 methods: to_json, as_json, from_json and from_loaded_json.

to_json and from_json are the main entry points of the serializer/deserializer, and as_json and from_loaded_json are intermediate processing methods.

See examples in spec/lib/zerial

TODO

  • Remove dependency on ActiveSupport

Contributing

  1. Fork it ( https://github.com/[my-github-username]/zerial/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Releases

No releases published

Packages

No packages published

Languages