{"id":8578,"date":"2020-01-27T10:46:33","date_gmt":"2020-01-27T10:46:33","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=8578"},"modified":"2026-04-01T12:20:53","modified_gmt":"2026-04-01T06:50:53","slug":"fast-json-api-serializer-by-netflix-in-ruby-on-rails","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/","title":{"rendered":"Fast JSON API Serializer by Netflix in Ruby On Rails"},"content":{"rendered":"\n<p>This tutorial will guide you about <a href=\"https:\/\/github.com\/Netflix\/fast_jsonapi\" target=\"_blank\" rel=\"noopener noreferrer\">Fast JSON API<\/a> Serializer. It gives you better performance as compared to <a href=\"https:\/\/github.com\/rails-api\/active_model_serializers\" target=\"_blank\" rel=\"noopener noreferrer\">Active Model Serializer<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"544\" height=\"90\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-1-2.png\" alt=\"\" class=\"wp-image-13324\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-1-2.png 544w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-1-2-300x50.png 300w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"150\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/call-now-ruby-on-rails-web-development.png\" alt=\"call now for ruby on rails web development\" class=\"wp-image-13325\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/call-now-ruby-on-rails-web-development.png 700w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/call-now-ruby-on-rails-web-development-300x64.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>Let\u2019s start with a brief introduction to JSON and Serialization, and how we can use it in <a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\" target=\"_blank\" rel=\"noopener noreferrer\">Rails application<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is JSON?<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.json.org\/json-en.html\" target=\"_blank\" rel=\"noopener noreferrer\">JSON (Javascript Object Notation)<\/a> is a text-based, human-readable data interchange format used for representing simple data structures and objects in Web browser-based code. It supports:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Numbers<\/li>\n\n\n\n<li>Strings<\/li>\n\n\n\n<li>Arrays or lists<\/li>\n\n\n\n<li>Hashes\/dictionaries\/objects<\/li>\n\n\n\n<li>Boolean values<\/li>\n\n\n\n<li>Empty values, using null<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.botreetechnologies.com\/blog\/rails-5-and-cookie-serialization\" target=\"_blank\" rel=\"noopener noreferrer\">What is Serialization?<\/a><\/h3>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Serialization\" target=\"_blank\" rel=\"noopener noreferrer\">Serialization<\/a> is the process of turning data structures into another format that can be stored or transmitted over the network.<\/p>\n\n\n\n<p>Examples of serialization formats include JSON, XML, and YAML, so the process of turning any data type into one of these formats is called \u201cserialization.\u201d<\/p>\n\n\n\n<p><strong>Features:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Declaration syntax similar to <a href=\"https:\/\/github.com\/rails-api\/active_model_serializers\" target=\"_blank\" rel=\"noopener noreferrer\">Active Model Serializer(AMS)<\/a><\/li>\n\n\n\n<li>Support for belongs_to, has_many and has_one<\/li>\n\n\n\n<li>Support for compound documents (included)<\/li>\n\n\n\n<li>Optimized serialization of compound documents<\/li>\n\n\n\n<li>Caching<\/li>\n<\/ul>\n\n\n\n<p>Further Reading: <a href=\"https:\/\/www.botreetechnologies.com\/blog\/integrating-google-cloud-vision-api-with-ruby-for-image-object-detection\" target=\"_blank\" rel=\"noopener noreferrer\">Integrating Google Cloud Vision API with Ruby for Image Object Detection<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Implementations:<\/h3>\n\n\n\n<p><strong>Let\u2019s create the Rails application.<\/strong><\/p>\n\n\n\n<p><code>$ rails new fast_json_api_serializer --database=postgresql<\/code><\/p>\n\n\n\n<p><code>$ cd fast_json_api_serializer<\/code><\/p>\n\n\n\n<p>Let\u2019s start with Active Model Serializer and see how much time is required to serializing the data. Then, we will see how we can increase the performance with Fast JSON API.<\/p>\n\n\n\n<p>We are going to use gem <a href=\"https:\/\/github.com\/rails-api\/active_model_serializers\" target=\"_blank\" rel=\"noopener noreferrer\">&#8216;active_model_serializers&#8217;<\/a>. Add the following to &#8216;Gemfile&#8217;.<\/p>\n\n\n\n<p><code>gem 'active_model_serializers'<\/code><\/p>\n\n\n\n<p><code>Run the installer:<\/code><\/p>\n\n\n\n<p><code>$ bundle install<\/code><\/p>\n\n\n\n<p><code>$ rails g scaffold Article title content:text<\/code><\/p>\n\n\n\n<p>This command will create the scaffold named \u2018Article\u2019 and two columns \u2018title\u2019 and \u2018content\u2019 to the article model.<\/p>\n\n\n\n<p><code>$ rails g serializer article title content<\/code><\/p>\n\n\n\n<p>This command will create an &#8216;article&#8217; serializer. It adds \u2018article_serializer.rb&#8217; file in &#8216;app\/serializers&#8217; folder. You can see a directory structure as below:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"297\" height=\"338\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-2-2.png\" alt=\"Output 2\" class=\"wp-image-13326\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-2-2.png 297w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-2-2-264x300.png 264w\" sizes=\"auto, (max-width: 297px) 100vw, 297px\" \/><\/figure>\n<\/div>\n\n\n<p>Now our \u2018article_serializer.rb\u2019 looks like this:<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/JaydipMakwana\/bd49bfbc6f4d1e9d5ce6a4c1632747ab.js\"><\/script><\/p>\n\n\n\n<p>Let\u2019s have a look at \u2018articles_controller.rb\u2019 and change the \u2018index\u2019 method like below:<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/JaydipMakwana\/fa39b4d20451c33eac29a4a8c7a3c265.js\"><\/script><br>Let\u2019s create some sample data. For this, open the \u2018seeds.rb\u2019 and add the following code to create the data.<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/JaydipMakwana\/942e493f40d6f18f380dd897d610eb70.js\"><\/script><\/p>\n\n\n\n<p>Run the following command:<\/p>\n\n\n\n<p><code>$ rails db:seed<\/code><\/p>\n\n\n\n<p>Start rails server:<\/p>\n\n\n\n<p><code>$ rails s<\/code><\/p>\n\n\n\n<p>Now open the browser and fire the JSON request using localhost:3000\/articles.json or you can also use the <a href=\"https:\/\/www.getpostman.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">POSTMAN<\/a> app.<\/p>\n\n\n\n<p>Let&#8217;s see how much time it took for serialization &#8211;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"743\" height=\"54\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-3-1.png\" alt=\"Output 3\" class=\"wp-image-13327\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-3-1.png 743w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-3-1-300x22.png 300w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/figure>\n<\/div>\n\n\n<p>It took 38.8ms for serialization.<\/p>\n\n\n\n<p>Now we will go with Fast JSON API for better performance.<\/p>\n\n\n\n<p>We are going to use gem <a href=\"https:\/\/github.com\/Netflix\/fast_jsonapi\" target=\"_blank\" rel=\"noopener noreferrer\">&#8216;fast_jsonapi&#8217;<\/a>. Add the following to &#8216;Gemfile&#8217;.<\/p>\n\n\n\n<p><code>gem 'fast_jsonapi'<\/code><\/p>\n\n\n\n<p><code># Note: Don\u2019t remove the gem 'active_model_serializers'.<\/code><\/p>\n\n\n\n<p>Run the installer:<\/p>\n\n\n\n<p><code>$ bundle install<\/code><\/p>\n\n\n\n<p>Now change the \u2018article_serializer.rb\u2019 as below:<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/JaydipMakwana\/c84772a28bcd6d823fe35072b4139b17.js\"><\/script><\/p>\n\n\n\n<p>Also, change the \u2018index\u2019 method of \u2018articles_controller.rb\u2019.<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/JaydipMakwana\/7ddab1106428f29c3f70fb5f04a20701.js\"><\/script><\/p>\n\n\n\n<p>Hit the same URL, http:\/\/localhost:3000\/articles.json and see response time in terminal:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"765\" height=\"23\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-5-1.png\" alt=\"Output 5\" class=\"wp-image-13328\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-5-1.png 765w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-5-1-300x9.png 300w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"266\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/fun-gif.gif\" alt=\"\" class=\"wp-image-13330\"\/><\/figure>\n<\/div>\n\n\n<p>Voila!! Serialization time is fast compared to AMS. It took 5.9ms for serialization.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Compare Responses:<\/h3>\n\n\n\n<p><strong>Active Model Serializer:<\/strong><\/p>\n\n\n\n<p>{<\/p>\n\n\n\n<p>&#8220;id&#8221;:1,<\/p>\n\n\n\n<p>&#8220;title&#8221;:&#8221;Article-1&#8243;,<\/p>\n\n\n\n<p>&#8220;content&#8221;:&#8221;This is article number 1&#8243;<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p><strong>Fast JSON API:<\/strong><\/p>\n\n\n\n<p>{ &#8220;data&#8221;:<\/p>\n\n\n\n<p>{ &#8220;id&#8221;:&#8221;1&#8243;,<\/p>\n\n\n\n<p>&#8220;type&#8221;:&#8221;article&#8221;,<\/p>\n\n\n\n<p>&#8220;attributes&#8221;:{<\/p>\n\n\n\n<p>&#8220;title&#8221;:&#8221;Article-1&#8243;,<\/p>\n\n\n\n<p>&#8220;content&#8221;:&#8221;This is article number 1&#8243;<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>As you see above, Fast JSON API exposes more information compared to Active Model Serializer.<\/p>\n\n\n\n<p>You can find the complete code on Github <a href=\"https:\/\/github.com\/JaydipMakwana\/fast_json_api_serializer\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n\n\n\n<p><em>BoTree Technologies is a leading <a href=\"https:\/\/www.botreetechnologies.com\" target=\"_blank\" rel=\"noopener noreferrer\">software development company in Ahmedabad<\/a> that builds top-notch software and solutions to increase business revenue and maximize productivity.&nbsp;<\/em><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\" target=\"_blank\" rel=\"noopener noreferrer\">Click here for more details&#8230;<\/a><\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.botreetechnologies.com\/contact\" target=\"_blank\" rel=\"noopener noreferrer\">Consulting is free<\/a> &#8211; let us help you grow!<\/h3>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will guide you about Fast JSON API Serializer&#8230;.<\/p>\n","protected":false},"author":55,"featured_media":13322,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"class_list":["post-8578","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-on-rails"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fast JSON API Serializer by Netflix in Ruby on Rails<\/title>\n<meta name=\"description\" content=\"Want better performance in Ruby on Rails? Here\u2019s how Fast JSON API Serializer can help you by exposing more information as compared to Active Model Serializer.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fast JSON API Serializer by Netflix in Ruby on Rails\" \/>\n<meta property=\"og:description\" content=\"Want better performance in Ruby on Rails? Here\u2019s how Fast JSON API Serializer can help you by exposing more information as compared to Active Model Serializer.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/\" \/>\n<meta property=\"og:site_name\" content=\"BoTree Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BoTreeTechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-27T10:46:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-01T06:50:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jaydip Makwana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:site\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jaydip Makwana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/\"},\"author\":{\"name\":\"Jaydip Makwana\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/2b48bf48f7d568da75594e1c248767ad\"},\"headline\":\"Fast JSON API Serializer by Netflix in Ruby On Rails\",\"datePublished\":\"2020-01-27T10:46:33+00:00\",\"dateModified\":\"2026-04-01T06:50:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/\"},\"wordCount\":529,\"commentCount\":10,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg\",\"articleSection\":[\"Ruby on Rails\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/\",\"name\":\"Fast JSON API Serializer by Netflix in Ruby on Rails\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg\",\"datePublished\":\"2020-01-27T10:46:33+00:00\",\"dateModified\":\"2026-04-01T06:50:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/2b48bf48f7d568da75594e1c248767ad\"},\"description\":\"Want better performance in Ruby on Rails? Here\u2019s how Fast JSON API Serializer can help you by exposing more information as compared to Active Model Serializer.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg\",\"width\":1920,\"height\":1280,\"caption\":\"Netflix in Ruby On Rails\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fast JSON API Serializer by Netflix in Ruby On Rails\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/\",\"name\":\"BoTree Technologies\",\"description\":\"Committed to inspire generation.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/2b48bf48f7d568da75594e1c248767ad\",\"name\":\"Jaydip Makwana\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/jaydip-makwana-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/jaydip-makwana-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/jaydip-makwana-150x150.png\",\"caption\":\"Jaydip Makwana\"},\"description\":\"Jaydip is a Ruby on Rails Developer. He loves Ruby and JavaScript. Apart from coding he likes to listen to songs and watching mythology dramas.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fast JSON API Serializer by Netflix in Ruby on Rails","description":"Want better performance in Ruby on Rails? Here\u2019s how Fast JSON API Serializer can help you by exposing more information as compared to Active Model Serializer.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/","og_locale":"en_US","og_type":"article","og_title":"Fast JSON API Serializer by Netflix in Ruby on Rails","og_description":"Want better performance in Ruby on Rails? Here\u2019s how Fast JSON API Serializer can help you by exposing more information as compared to Active Model Serializer.","og_url":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2020-01-27T10:46:33+00:00","article_modified_time":"2026-04-01T06:50:53+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg","type":"image\/jpeg"}],"author":"Jaydip Makwana","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Jaydip Makwana","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/"},"author":{"name":"Jaydip Makwana","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/2b48bf48f7d568da75594e1c248767ad"},"headline":"Fast JSON API Serializer by Netflix in Ruby On Rails","datePublished":"2020-01-27T10:46:33+00:00","dateModified":"2026-04-01T06:50:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/"},"wordCount":529,"commentCount":10,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg","articleSection":["Ruby on Rails"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/","url":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/","name":"Fast JSON API Serializer by Netflix in Ruby on Rails","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg","datePublished":"2020-01-27T10:46:33+00:00","dateModified":"2026-04-01T06:50:53+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/2b48bf48f7d568da75594e1c248767ad"},"description":"Want better performance in Ruby on Rails? Here\u2019s how Fast JSON API Serializer can help you by exposing more information as compared to Active Model Serializer.","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/01\/netflix-in-ruby-on-rails.jpg","width":1920,"height":1280,"caption":"Netflix in Ruby On Rails"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/fast-json-api-serializer-by-netflix-in-ruby-on-rails\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Fast JSON API Serializer by Netflix in Ruby On Rails"}]},{"@type":"WebSite","@id":"https:\/\/www.botreetechnologies.com\/blog\/#website","url":"https:\/\/www.botreetechnologies.com\/blog\/","name":"BoTree Technologies","description":"Committed to inspire generation.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/2b48bf48f7d568da75594e1c248767ad","name":"Jaydip Makwana","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/jaydip-makwana-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/jaydip-makwana-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/jaydip-makwana-150x150.png","caption":"Jaydip Makwana"},"description":"Jaydip is a Ruby on Rails Developer. He loves Ruby and JavaScript. Apart from coding he likes to listen to songs and watching mythology dramas."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=8578"}],"version-history":[{"count":6,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8578\/revisions"}],"predecessor-version":[{"id":20652,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8578\/revisions\/20652"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/13322"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=8578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=8578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=8578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}