Member-only story
How to Set up a Test JSON Source Online
During application design and development, we often times want to prototype our ideas quickly by using some mock data. In this way, we can demonstrate our proof of concepts to customers without much turnaround time.
In this post, we will talk about one type of mock data, JSON objects. JSON is a programming language agnostic format and JSON objects are commonly used as HTTP callback results. If you want to make an HTTP request, especially when you are working on a front-end project, then you will wish for a handy server that simply returns whatever you want.
There are many online tools, but it’s hard to determine which one is good for our use cases. In this post, I will present my findings and hope they could help. Let’s start by checking out several popular and free sources. These sources are great for writing up tutorials, testing new libraries, sharing code examples, and so on.
1. httpbin
The httpbin supports both HTTP and HTTPS schemes (https://httpbin.org/). The nice thing about this tool is that you can also pull a docker image and run an HTTP server locally.
The Swagger-like user interface makes the httpbin easy to try out different API endpoints and the predefined API endpoints cover a wide range of use cases. We can simply copy the URL and use it in our code…