{"id":23370,"date":"2024-06-16T07:29:43","date_gmt":"2024-06-16T07:29:43","guid":{"rendered":"https:\/\/linux.how2shout.com\/?p=23370"},"modified":"2024-06-16T07:29:49","modified_gmt":"2024-06-16T07:29:49","slug":"how-to-install-json-server-in-ubuntu-24-04-lts-linux","status":"publish","type":"post","link":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/","title":{"rendered":"How to install JSON Server in Ubuntu 24.04 LTS Linux"},"content":{"rendered":"\n<p>If you want to create a mock RESTful API to test your front-end code without setting up a full back-end environment then a JSON server will help you a lot. In this tutorial, we will learn commands to not only install the JSON server on Ubuntu 24.04 Linux but even how to use it with an example.<\/p>\n\n\n\n<p><strong>What is a JSON server?<\/strong><\/p>\n\n\n\n<p>JSON Server is an open-source tool developed to provide a fake REST API back-end for prototyping and mocking using a JSON file but without performing any coding. It allows front-end developers to test their code quickly instead of setting a full back-end environment before actually going for the final deployment of a project. JSON Server provides all the typical RESTful routes, allowing for CRUD (Create, Read, Update, Delete) operations. The best part is it can be installed using Nodejs NPM, and can be used on almost all operating systems. <\/p>\n\n\n\n<p><strong> What do we need to perform this tutorial?<\/strong> <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ubuntu 24.04 LTS Linux system or any other version of it such as Ubuntu 20.04, 22.04, or 23.04.<\/li>\n\n\n\n<li>Access to the root user or any other with sudo rights.<\/li>\n\n\n\n<li>Availability of an active internet connection<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Access Ubuntu 24.04 Terminal<\/h2>\n\n\n\n<p>Open the command terminal on your Ubuntu system and run the system update command along with the installation of cURL.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo apt update &amp;&amp; sudo apt upgrade &amp;&amp; sudo apt install curl<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Install Node.js and npm<\/h2>\n\n\n\n<p>First, we need to install Nodejs on our Ubuntu 24.04 server or desktop because JSON Server is built on Node.js. Well, to get the latest LTS version of Node we need to add its official repository manually, here is the command to do that.<\/p>\n\n\n\n<p>The default version of Nodejs available through the Ubuntu 24.04  system repository is 18.x, if you want to use that then simply type: &#8220;<code>sudo apt install nodejs<\/code>&#8220;<\/p>\n\n\n\n<p><strong>Whereas<\/strong> those who want the<strong> latest available LTS version of Nodejs, <\/strong>need to add its repository manually. For example, while doing this article the latest LTS version was 20.x, therefore, to get it, use the given command: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">curl -fsSL https:\/\/deb.nodesource.com\/setup_20.x | sudo -E bash -<\/code><\/pre>\n\n\n\n<p><strong>Install Nodejs and NPM:<\/strong><\/p>\n\n\n\n<p>After adding this repository run the installation command, it will configure the Node.js along with npm (Node Package Manager).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo apt install nodejs<\/code><\/pre>\n\n\n\n<p><strong>Verify the installation:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">node -v\nnpm -v<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"517\" src=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/Installing-NodeJs-and-NPM-on-UIbuntu-24.04.png\" alt=\"Installing NodeJs and NPM on UIbuntu 24.04\" class=\"wp-image-23375\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Install JSON Server on Ubuntu 24.04<\/h2>\n\n\n\n<p>Now that we have the Node.js along with its package manager NPM on Ubuntu 24.04, the installation of JSON Server can easily be done using NPM, here is the command to follow: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo npm install -g json-server<\/code><\/pre>\n\n\n\n<p><strong>To verify the installation of the JSON Server, run:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">json-server --version<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"322\" src=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/Check-JSON-Server-version.webp\" alt=\"Check JSON Server version\" class=\"wp-image-23377\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Example: How to use JSON Server<\/h2>\n\n\n\n<p>JSON Server uses a simple JSON file to serve as a database. Create a sample JSON file named <code>db.json<\/code> in your desired directory. <strong>For this tutorial, we&#8217;ll create a simple database for users and posts.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create a JSON File<\/h3>\n\n\n\n<p><strong>Create a directory for your project:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">mkdir ~\/json-server\ncd ~\/json-server<\/code><\/pre>\n\n\n\n<p><strong>Create the db.json file:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">nano db.json<\/code><\/pre>\n\n\n\n<p><strong>Add the following sample data:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">{\n  \"users\": [\n    { \"id\": 1, \"name\": \"John Doe\" },\n    { \"id\": 2, \"name\": \"Jane Doe\" }\n  ],\n  \"posts\": [\n    { \"id\": 1, \"title\": \"Hello World\", \"author\": \"John Doe\" },\n    { \"id\": 2, \"title\": \"JSON Server Rocks\", \"author\": \"Jane Doe\" }\n  ]\n}<\/code><\/pre>\n\n\n\n<p>Save the file and exit the text editor (for nano, press CTRL + X, then Y, and Enter).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Start JSON Server<\/h3>\n\n\n\n<p>To start the JSON Server, navigate to the directory containing your db.json file and run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">json-server --watch db.json<\/code><\/pre>\n\n\n\n<p>This command starts a JSON Server that watches the <strong>db.json<\/strong> file for changes. By default, the server runs on port <strong>3000<\/strong>. You should see the output as given in the screenshot:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"457\" src=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/Start-JSON-Server.webp\" alt=\"Start JSON Server\" class=\"wp-image-23378\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Access the API<\/h3>\n\n\n\n<p>Open a web browser or use a tool like <strong>Curl <\/strong>or Postman to access the API endpoints. You can use the URLs provided in the terminal output.<\/p>\n\n\n\n<p><strong>For example, to get the list of users, navigate to:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">http:\/\/localhost:3000\/users<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"490\" src=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/JSON-Server-Localhost-port-3000.webp\" alt=\"JSON Server Localhost port 3000\" class=\"wp-image-23379\"\/><\/figure>\n\n\n\n<p><strong>To get the list of posts, navigate to:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">http:\/\/localhost:3000\/posts<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"533\" src=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/get-the-list-of-users-JSON-server-1024x533.webp\" alt=\"get the list of users JSON server\" class=\"wp-image-23380\"\/><\/figure>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>With minimal setup, JSON Server is a quite useful tool for mocking REST APIs quickly and easily. Front-end developers can focus on their projects and their testing without waiting for back-end services to be ready.<\/p>\n\n\n\n<p><strong>Other Articles:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/linux.how2shout.com\/how-to-use-traceroute-command-in-linux-such-as-ubuntu\/\">How To Use traceroute Command in Linux such as Ubuntu<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/linux.how2shout.com\/how-to-install-jellyfin-media-server-on-ubuntu-24-04-server-linux\/\">Installing Jellyfin Media Server on Ubuntu 24.04 Server Linux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/linux.how2shout.com\/how-to-install-docker-desktop-on-ubuntu-24-04-lts-noble-linux\/\">How to install Docker Desktop on Ubuntu 24.04 LTS Noble Linux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/linux.how2shout.com\/installing-glances-in-ubuntu-24-04-lts-server\/\">Installing Glances in Ubuntu 24.04 LTS server<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If you want to create a mock RESTful API to test your front-end code without setting up a full back-end environment then a JSON server will help you a lot. In this tutorial, we will learn commands to not only install the JSON server on Ubuntu 24.04 Linux but even how to use it with [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":23383,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","_mbp_gutenberg_autopost":false,"footnotes":""},"categories":[3],"tags":[31,29,3207],"class_list":{"0":"post-23370","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ubuntu","8":"tag-tutorial","9":"tag-ubuntu","10":"tag-ubuntu-24-04"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to install JSON Server in Ubuntu 24.04 LTS Linux - LinuxShout<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will learn commands to not only install the JSON server on Ubuntu 24.04 Linux but even how to use it with an example.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install JSON Server in Ubuntu 24.04 LTS Linux\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will learn commands to not only install the JSON server on Ubuntu 24.04 Linux but even how to use it with an example.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxShout\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/how2shout\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-16T07:29:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-16T07:29:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/JSON-server-installation-on-Ubuntu-24.04.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1533\" \/>\n\t<meta property=\"og:image:height\" content=\"604\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Heyan Maurya\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@h2smedia\" \/>\n<meta name=\"twitter:site\" content=\"@h2smedia\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Heyan Maurya\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/\"},\"author\":{\"name\":\"Heyan Maurya\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/person\\\/102d73e20384ea409022d5bafddc0f72\"},\"headline\":\"How to install JSON Server in Ubuntu 24.04 LTS Linux\",\"datePublished\":\"2024-06-16T07:29:43+00:00\",\"dateModified\":\"2024-06-16T07:29:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/\"},\"wordCount\":654,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/JSON-server-installation-on-Ubuntu-24.04.webp\",\"keywords\":[\"tutorial\",\"ubuntu\",\"ubuntu 24.04\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/#respond\"]}],\"copyrightYear\":\"2024\",\"copyrightHolder\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/\",\"name\":\"How to install JSON Server in Ubuntu 24.04 LTS Linux - LinuxShout\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/JSON-server-installation-on-Ubuntu-24.04.webp\",\"datePublished\":\"2024-06-16T07:29:43+00:00\",\"dateModified\":\"2024-06-16T07:29:49+00:00\",\"description\":\"In this tutorial, we will learn commands to not only install the JSON server on Ubuntu 24.04 Linux but even how to use it with an example.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/JSON-server-installation-on-Ubuntu-24.04.webp\",\"contentUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/JSON-server-installation-on-Ubuntu-24.04.webp\",\"width\":1533,\"height\":604,\"caption\":\"JSON server installation on Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linux.how2shout.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install JSON Server in Ubuntu 24.04 LTS Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#website\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/\",\"name\":\"LinuxShout\",\"description\":\"Find the open source solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\"},\"alternateName\":\"Linux how2shout\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linux.how2shout.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\",\"name\":\"LinuxShout\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Linux-Shout-Logo.png\",\"contentUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Linux-Shout-Logo.png\",\"width\":503,\"height\":349,\"caption\":\"LinuxShout\"},\"image\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/how2shout\",\"https:\\\/\\\/x.com\\\/h2smedia\",\"https:\\\/\\\/instagram.com\\\/h2smedia\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/h2smedia\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/how2shout\",\"https:\\\/\\\/youtube.com\\\/h2smedia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/person\\\/102d73e20384ea409022d5bafddc0f72\",\"name\":\"Heyan Maurya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g\",\"caption\":\"Heyan Maurya\"},\"description\":\"I have a keen interest in all kinds of technologies, from consumer-tech to enterprise solutions. However, I am still trying to learn Linux and whatever the problems I face, trying to give solutions for the same, here...\",\"sameAs\":[\"https:\\\/\\\/www.how2shout.com\\\/\"],\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/author\\\/heyan\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to install JSON Server in Ubuntu 24.04 LTS Linux - LinuxShout","description":"In this tutorial, we will learn commands to not only install the JSON server on Ubuntu 24.04 Linux but even how to use it with an example.","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:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to install JSON Server in Ubuntu 24.04 LTS Linux","og_description":"In this tutorial, we will learn commands to not only install the JSON server on Ubuntu 24.04 Linux but even how to use it with an example.","og_url":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/","og_site_name":"LinuxShout","article_publisher":"https:\/\/www.facebook.com\/how2shout","article_published_time":"2024-06-16T07:29:43+00:00","article_modified_time":"2024-06-16T07:29:49+00:00","og_image":[{"width":1533,"height":604,"url":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/JSON-server-installation-on-Ubuntu-24.04.webp","type":"image\/webp"}],"author":"Heyan Maurya","twitter_card":"summary_large_image","twitter_creator":"@h2smedia","twitter_site":"@h2smedia","twitter_misc":{"Written by":"Heyan Maurya","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/#article","isPartOf":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/"},"author":{"name":"Heyan Maurya","@id":"https:\/\/linux.how2shout.com\/#\/schema\/person\/102d73e20384ea409022d5bafddc0f72"},"headline":"How to install JSON Server in Ubuntu 24.04 LTS Linux","datePublished":"2024-06-16T07:29:43+00:00","dateModified":"2024-06-16T07:29:49+00:00","mainEntityOfPage":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/"},"wordCount":654,"commentCount":0,"publisher":{"@id":"https:\/\/linux.how2shout.com\/#organization"},"image":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/JSON-server-installation-on-Ubuntu-24.04.webp","keywords":["tutorial","ubuntu","ubuntu 24.04"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/#respond"]}],"copyrightYear":"2024","copyrightHolder":{"@id":"https:\/\/linux.how2shout.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/","url":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/","name":"How to install JSON Server in Ubuntu 24.04 LTS Linux - LinuxShout","isPartOf":{"@id":"https:\/\/linux.how2shout.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/#primaryimage"},"image":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/JSON-server-installation-on-Ubuntu-24.04.webp","datePublished":"2024-06-16T07:29:43+00:00","dateModified":"2024-06-16T07:29:49+00:00","description":"In this tutorial, we will learn commands to not only install the JSON server on Ubuntu 24.04 Linux but even how to use it with an example.","breadcrumb":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/#primaryimage","url":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/JSON-server-installation-on-Ubuntu-24.04.webp","contentUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/JSON-server-installation-on-Ubuntu-24.04.webp","width":1533,"height":604,"caption":"JSON server installation on Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linux.how2shout.com\/"},{"@type":"ListItem","position":2,"name":"How to install JSON Server in Ubuntu 24.04 LTS Linux"}]},{"@type":"WebSite","@id":"https:\/\/linux.how2shout.com\/#website","url":"https:\/\/linux.how2shout.com\/","name":"LinuxShout","description":"Find the open source solutions","publisher":{"@id":"https:\/\/linux.how2shout.com\/#organization"},"alternateName":"Linux how2shout","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linux.how2shout.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linux.how2shout.com\/#organization","name":"LinuxShout","url":"https:\/\/linux.how2shout.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linux.how2shout.com\/#\/schema\/logo\/image\/","url":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2020\/06\/Linux-Shout-Logo.png","contentUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2020\/06\/Linux-Shout-Logo.png","width":503,"height":349,"caption":"LinuxShout"},"image":{"@id":"https:\/\/linux.how2shout.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/how2shout","https:\/\/x.com\/h2smedia","https:\/\/instagram.com\/h2smedia","https:\/\/www.linkedin.com\/company\/h2smedia\/","https:\/\/www.pinterest.com\/how2shout","https:\/\/youtube.com\/h2smedia"]},{"@type":"Person","@id":"https:\/\/linux.how2shout.com\/#\/schema\/person\/102d73e20384ea409022d5bafddc0f72","name":"Heyan Maurya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g","caption":"Heyan Maurya"},"description":"I have a keen interest in all kinds of technologies, from consumer-tech to enterprise solutions. However, I am still trying to learn Linux and whatever the problems I face, trying to give solutions for the same, here...","sameAs":["https:\/\/www.how2shout.com\/"],"url":"https:\/\/linux.how2shout.com\/author\/heyan\/"}]}},"_links":{"self":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts\/23370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/comments?post=23370"}],"version-history":[{"count":5,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts\/23370\/revisions"}],"predecessor-version":[{"id":23387,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts\/23370\/revisions\/23387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/media\/23383"}],"wp:attachment":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/media?parent=23370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/categories?post=23370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/tags?post=23370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}