Description
Serialize/Deserializing ruby objects
Eyra alternatives and similar gems
Based on the "API Builder" category.
Alternatively, view Eyra alternatives based on common mentions on social networks and blogs.
-
ActiveModel::Serializers
ActiveModel::Serializer implementation and Rails hooks -
Fast JSON API
No Longer Maintained - A lightning fast JSON:API serializer for Ruby Objects. -
rabl
General ruby templating with json, bson, xml, plist and msgpack support -
JSONAPI::Resources
A resource-focused Rails library for developing JSON:API compliant servers. -
Her
Her is an ORM (Object Relational Mapper) that maps REST resources to Ruby objects. It is designed to build applications that are powered by a RESTful API instead of a database. -
Blueprinter
Simple, Fast, and Declarative Serialization Library for Ruby -
Version Cake
:cake: Version Cake is an unobtrusive way to version APIs in your Rails or Rack apps -
Praxis
Praxis is a framework that focuses on both the design and implementation aspects of creating APIs. -
Pragma
An expressive, opinionated ecosystem for building beautiful RESTful APIs with Ruby. -
YASL
Yet Another Serialization Library - A pure Ruby auto-serialization library that works across different Ruby implementations like Opal and JRuby as an automatic alternative to YAML/Marshal. Unlike Marshal, it does not raise errors for unserializable objects, thus provides a highly productive friction-free auto-serialization experience.
Collect and Analyze Billions of Data Points in Real Time
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Eyra or a related project?
Popular Comparisons
README
Eyra
serializer for Ruby Objects
Installation
Add this line to your application's Gemfile:
gem 'eyra'
And then execute:
$ bundle
Or install it yourself as:
$ gem install eyra
Usage
class MovieSerializer
include Eyra
field :title,type: String
field :year,type: Integer
dump_format :year_in_hex do
year.to_i.to_s(16)
end
end
MovieSerialize.new(@movie).to_json # { movie: 'The fight club', year: 1999,year_in_hex: "7cf" }
Benchmarks
wip
Alternatives
https://github.com/netflix/fast_jsonapi
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/marianogabriels/eyra.