how to create json file

How to create a JSON file?

How to create a JSON file?

The JSON file is a Containing JSON Object and Array.

The MIME type for JSON text is “application/JSON”

For more information about JSON File check out

Refer to this post for more information regarding the JSON file.

If you want to Download the direct JSON Files Checkout sample JSON file. Here, You can find out all types of sample JSON files that you can download and modify accordingly your uses.


Let’s start creating a JSON file:

You just need to open any text editor paste below code and save that file with .json extension that’s it, your JSON file is ready.
You can save this file like sample-json.json.

    "firstName": "Rack",
    "lastName": "jackson",
    "gender": "man",
    "age": 24,
    "address": {
        "streetAddress": "126 Udhna",
        "city": "san jone",
        "state": "CA",
        "postalCode": "394221"
    "phoneNumbers": [
        { "type": "home", "number": "7383627627" }

Check out below link for “Save a file in JSON format using Notepad++”.
How to create json file?


How to Open JSON File

What is a JSON file?


You can also call sample-JSON API directly.

You need to save the above code with .json extension.

More details about how to create a JSON file? you can find out below details:

The JSON file can be accessed via URL. 

It’s a Plain text file so, you can also directly open that file.

You can add this file to the server and used it via URL and directly format through JSON Beautifier Tool. Like

You can refer to display data in the proper format and you can compare to JSON file =>

Leave a Comment

%d bloggers like this: