Blueprinter
Oj
Our great sponsors
Blueprinter | Oj | |
---|---|---|
12 | 7 | |
1,058 | 3,092 | |
1.3% | - | |
8.9 | 7.1 | |
15 days ago | 2 days ago | |
Ruby | C | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Blueprinter
-
Recommended Controllers Serializer Gem?
Blueprinter is something we use on a project, it's also having difficulty staying alive, but right now there is active development here, a fork from the original blueprinted gem.
-
Efficient JSON Serialization with Blueprinter for Ruby on Rails
Beware of this
-
Understanding Clean Architecture with small Ruby libraries
Serializer: procore/blueprinter: Simple, Fast, and Declarative Serialization Library for Ruby
-
ActiveModel::Serializer and You
Today I thought I'd run through a few of the powerful things that the ActiveModel::Serializer gem brings to the table when used in a Ruby on Rails application. Sure, there are faster alternatives, but AMS is the first one I learned how to use, and thus it holds a special place in my heart. Quick question before we dive too much deeper, though...
-
What are you using for API JSON serialization in 2022?
Blueprint
-
What are the gems that every Ruby dev should know how to use?
Just an FYI: While I agree that the blueprinter gem is awesome, there are currently no active maintainers: https://github.com/procore/blueprinter/issues/288
-
Hunting down spooky JSON module redefinition via Oj
In a happy coincidence, we're knee-deep in the middle of a migration of our serialisers to use Blueprinter instead of AMS. One benefit, in this case, is that it lets you explicitly set what generator you're using, like so:
-
Accessing [grand+]child through multiple queries VS having direct reference to the [grand+]parent on every model.
What made me think about this is that I'm using (maybe in the wrong way) some gems like Blueprinter and Amoeba.
-
What is the best way to retrieve all instances of a model, along with it's associations, in an index action when using React (or not Rails Views)?
I've been using Blueprinter so far, and it has been working great, but I'd like to ditch it if I can.
-
Looking for a full Rswag example project.
We use it extensively for one project. The only annoying bit involves defining the response json-schema. Luckily we are using a gem called blueprinter for JSON serialization, so we added a bunch of overrides that store metadata, so we can generate the json-schema with meta programming. You might need to find a library that would help you write the schemas fluently [1] / [2] to make it easier to define them.
Oj
-
What JSON Serializers are you using with rails ?
Hi guys, I know that Hotwire is the sh*t in rails nowadays, but if you were to build an API with rails, which serializer would you use ? I have my eyes on jsonapi-serializer with oj , but I am not sure if that is the best option nowadays. The jsonapi-serializer repo is a bit confusing, regarding which version should I use, same for ActiveModelSerializer to be honest.
-
Suggestions for how to reduce memory usage
Install OJ if you render out JSON a lot
-
Oj VS jsonic - a user suggested alternative
2 projects | 21 Nov 2022
-
How can I optimize my Rails app which is delivering thousands of objects to Vue?
Switch to using a faster serialization library like OJ.
-
Hunting down spooky JSON module redefinition via Oj
I knew that our app was using Oj for JSON serialisation. But I didn't initially notice anything spooky about pretty_generate. A colleague of mine (shoutout Iain) had keener eyes and pulled up the C file that dealt with something spooky sounding in mimic_json.c.
- Oj (Ruby) Just Got Faster
-
How to use oj with jb in Rails 6?
Hello there, I am using Rails 6.1, I am accustomed to JBuilder, but in an attempt to increase the performance, I decided to use [jb](https://github.com/amatsuda/jb). How can I use [oj](https://github.com/ohler55/oj/) with jb?
What are some alternatives?
ActiveModel::Serializers - ActiveModel::Serializer implementation and Rails hooks
Nokogiri - Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
Fast JSON API - No Longer Maintained - A lightning fast JSON:API serializer for Ruby Objects.
Jb - A simple and fast JSON API template engine for Ruby on Rails
jbuilder - Jbuilder: generate JSON objects with a Builder-style DSL
Ox - Ruby Optimized XML Parser
Rails::API - Rails for API only applications
HTML::Pipeline - HTML processing filters and utilities
alba - Alba is a JSON serializer for Ruby, JRuby and TruffleRuby.
TOML - Parse TOML. Like a bawss.
jsonapi-serializer - A fast JSON:API serializer for Ruby (fork of Netflix/fast_jsonapi)
Sablon - Ruby Document Template Processor based on docx templates and Mail Merge fields.