Software Alternatives, Accelerators & Startups

MockServer VS JSON Server

Compare MockServer VS JSON Server and see what are their differences

MockServer logo MockServer

Easy mocking of any system you integrate with via HTTP or HTTPS.

JSON Server logo JSON Server

Get a full fake REST API with zero coding in less than 30 seconds. For front-end developers who need a quick back-end for prototyping and mocking
  • MockServer Landing page
    Landing page //
    2022-03-13
  • JSON Server Landing page
    Landing page //
    2023-08-01

MockServer features and specs

  • Flexibility
    MockServer provides extensive support for HTTP and HTTPS as well as customizable responses, which allows developers to simulate various scenarios and behaviors in a flexible manner.
  • Scriptable Expectations
    You can define expectations using Java, JavaScript, JSON, and YAML, enabling you to control responses in a programmatic way for more complex testing scenarios.
  • Ease of Integration
    MockServer can be easily integrated with various build tools and CI/CD pipelines, which streamlines the testing process and makes it more efficient.
  • Extensive Documentation
    MockServer comes with comprehensive documentation that includes usage examples, configuration guides, and API references, which helps in decreasing the learning curve.
  • Support for Unit and Integration Testing
    The tool supports both unit and integration testing, making it versatile for testing different levels of a system in isolation.

Possible disadvantages of MockServer

  • Performance Overhead
    Running MockServer can introduce performance overhead, especially in resource-constrained environments, which may affect the speed of the tests.
  • Complex Configuration
    While powerful, the configuration can become complex, particularly for more elaborate mock scenarios, leading to a steeper learning curve for newcomers.
  • Dependency Management
    When used in a Java environment, managing dependencies can become cumbersome, particularly if there are version conflicts with other libraries in the project.
  • Requires Java Runtime
    MockServer requires a Java Runtime Environment, which can be a limitation if your development environment or CI/CD pipeline does not support Java.
  • Limited Community Support
    While it has good official documentation, the community support around MockServer is not as extensive as some other tools, which may limit the availability of third-party plugins and extensions.

JSON Server features and specs

  • Ease of Setup
    JSON Server can be set up quickly with minimal configuration, making it ideal for prototyping and rapid development. It allows developers to have a fully functioning REST API within minutes.
  • RESTful API
    It provides a standard RESTful API out of the box, allowing developers to perform all CRUD operations. This is helpful for simulating a real-world server while testing client-side applications.
  • Customization
    JSON Server supports middlewares, routes, and custom rules, allowing developers to customize the behavior and structure of the API to better suit their needs.
  • Fakes Backend Data
    It's great for simulating backend responses without needing a real backend setup, useful in front-end development to test components and interactions.
  • Lightweight
    As a lightweight server, it requires fewer resources and is quite simple compared to setting up a full-fledged backend server.

Possible disadvantages of JSON Server

  • Not for Production
    JSON Server is designed for development and testing. It is not suitable for production use due to performance limits and lack of robust security features.
  • Limited Functionality
    While JSON Server is great for basic CRUD operations, it lacks advanced features like authentication, authorization, and complex querying.
  • Data Persistence
    Data is stored in a JSON file, and while this is convenient for testing, it is not suitable for applications that require persistent and scalable data storage.
  • In-memory Limitations
    Being an in-memory server, it may have issues with handling large datasets or complex data structures efficiently.
  • Manual Data Reset
    Any changes made to the JSON file while the server is running require manual resets or reloads to reflect in the API, which can be cumbersome during continuous development cycles.

Analysis of MockServer

Overall verdict

  • MockServer is generally well-regarded and recommended for its robust features and ease of use. It is particularly praised for being useful in testing scenarios and for providing reliable mock responses without requiring a running instance of the actual service.

Why this product is good

  • MockServer is considered good by many developers due to its flexibility and functionality in simulating APIs and microservices. It allows for detailed control over request/response manipulation, making it ideal for testing and development environments. Its support for both HTTP and HTTPS, as well as its ability to mock complex interactions, make it a versatile tool in a developer's toolkit.

Recommended for

  • Developers who need to simulate or test API interactions.
  • Teams working on microservices architecture requiring isolated testing environments.
  • QA engineers looking for reliable test doubles in automated test suites.
  • Projects that require testing under conditions where the actual services are unavailable or costly to use.

MockServer videos

No MockServer videos yet. You could help us improve this page by suggesting one.

Add video

JSON Server videos

Angular CRUD with Web API Tutorial Part #3 - Setup Local JSON Server and Mock API Endpoints

Category Popularity

0-100% (relative to MockServer and JSON Server)
API Tools
74 74%
26% 26
Development
30 30%
70% 70
Developer Tools
86 86%
14% 14
APIs
100 100%
0% 0

User comments

Share your experience with using MockServer and JSON Server. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, JSON Server seems to be a lot more popular than MockServer. While we know about 45 links to JSON Server, we've tracked only 4 mentions of MockServer. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

MockServer mentions (4)

  • MockServer: Easy mocking of any system you integrate (HTTP or HTTPS)
    There are several strategies to solve this kind of challenge, but today we will see MockServer as a tool to resolve it. - Source: dev.to / 8 months ago
  • Please recommend a good API Mocking tool
    The open-source examples are mockoon, mock-server.com, etc. Source: about 2 years ago
  • Testing with MockServer
    I've just found out MockServer and it looks awesome 🤩 so I wanted to check it out repeating the steps of my previous demo WireMock Testing which (as you can expect) uses WireMock, another fantastic tool to mock APIs. - Source: dev.to / about 3 years ago
  • How to unit test successful Oauth requests of 3rd party API's?
    I tend to use MockServer. With MockServer you can define inputs, so you can say that the request should look like this with that URL, etc etc. That way you can verify that the request looks okay. Source: over 3 years ago

JSON Server mentions (45)

  • Building a CRUD app with React Query, TypeScript, and Axios
    We'll be using json-server to create the REST API that we'll fetch data from. In the root of the project, create a db.json file with the contents. - Source: dev.to / 12 months ago
  • Full Stack To Do list, a step-by-step tutorial
    Our backend will be little more than a two-way translation layer between the database and the user interface (UI). Later in this post we will identify other responsibilities of a backend but our implementation will be kept simple to demonstrate the fundamental machinery and concepts. It is worth noting the backend comes in two parts, web server and application server. Both json-server and Express are able to... - Source: dev.to / almost 2 years ago
  • Improve Frontend-Backend development harmony with JSON-Server
    JSON-Server creates fake REST API with a minimum amount of configuration, it provides a simple way to create mock RESTful APIs and easily define the required endpoints, allows easy definition of the data schema in a JSON file and can serve as a reference for each figure in the project. - Source: dev.to / almost 2 years ago
  • Dictionary app
    I thought about usingJson Server (hosting the repo with the words on Github to begin with), Googlesheets, or maybe Firestore (i would prefer not to use it ,to avoid extra costs just in case it gets a reasonable amount of users). It isnt a big app so I just want a simple solution for storing the words and fetching them. Source: almost 2 years ago
  • Playwright - Not just for Frontend
    First, I didn't create a backend API for this example, but I used a fake API to test. I created it with json-server and json-server-auth. They are two npm packages that use a JSON file as a database and expose the database in an API. You can find more about json-server in its documentation and about json-server-auth here. - Source: dev.to / over 2 years ago
View more

What are some alternatives?

When comparing MockServer and JSON Server, you can also consider the following products

Webhook.site - Instantly generate a free, unique URL and email address to test, inspect, and automate (with a visual workflow editor and scripts) incoming HTTP requests and emails.

JSON Placeholder - JSON Placeholder is a modern platform that provides you online REST API, which you can instantly use whenever you need any fake data.

Beeceptor - Unblock yourself from API dependencies, and build & integrate with APIs fast. Beeceptor helps you build a mock Rest API in a few seconds.

mocki Fake JSON API - mocki Fake JSON API is an advanced platform that offers you to create API for personal use or testing purposes.

Request inspector - Debug web hooks, http clients

Mockae - The most flexible way to mock REST APIs with Lua code execution