Member-only story

How to Set up a Test JSON Source Online

Changhui Xu
codeburst
Published in
4 min readSep 3, 2019

Photo by Barn Images on Unsplash

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…

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Changhui Xu

Lead Application Developer. MBA. I write blogs about .NET, Angular, JavaScript/TypeScript, Docker, AWS, DDD, and many others.

No responses yet

What are your thoughts?