VOOZH about

URL: https://www.digitalocean.com/community/tutorials/an-introduction-to-json?comment=203511

โ‡ฑ An Introduction to JSON | DigitalOcean


๐Ÿ‘ An Introduction to JSON

Introduction

JSON, short for JavaScript Object Notation, is a format for sharing data. As its name suggests, JSON is derived from the JavaScript programming language, but itโ€™s available for use by many languages including Python, Ruby, PHP, and Java. JSON is usually pronounced like the name โ€œJason.โ€

JSON is also readable, lightweight, offers a good alternative to XML, and requires much less formatting. This informational guide will discuss the data you can use in JSON files and the general structure and syntax of this format.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the author

Community and Developer Education expert. Former Senior Manager, Community at DigitalOcean. Focused on topics including Ubuntu 22.04, Ubuntu 20.04, Python, Django, and more.

Still looking for an answer?

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Hi, Itโ€™s not a comment itโ€™s a question Iโ€™m a beginner in this language and i have some knowledgement in JavaScript. I should like to change the link in a JSon file, but i ignore the syntax. The line is : โ€œidโ€: โ€œ1โ€, โ€œlinkโ€: โ€œ#โ€, โ€œsrcโ€: โ€œhttps://picsum.photos/1920/776/?randomโ€,

I should like to change the โ€œsrcโ€: โ€œhttpโ€ฆโ€ by a picture in a file in my server. What do I have to write ?

Many Thanks for your help Best regards CP

Thanks for writing this, very clear and well-written. Iโ€™m an amateur, new to Javascript and just heard of JSON recently. It seems like a very good thing, but Iโ€™m not sure where or when to use it. Iโ€™ve been experimenting on a project using PHP to get data from a mysql server database, and learned from an online course how to make tables in PHP to display the data on a website. I like the fact that the PHP is not viewable (as tho I wrote all those table rows by hand!). So Iโ€™m not sure how or why I would use JSON if PHP is already sending and formatting the data. However, I do foresee tying to live-update the table as data is added, which I understood AJAX to be used for, so Iโ€™m wondering if JSON is just a non-XML version of AJAX? And would it seem to you that JSON would help me achieve that instead of or along with PHP? Can you show me sample code to make use of JSON from a PHP (or whatever) file? Thanks in advance Nate

Hey, found your article while surfing on info about learning JSON, maybe you should expand your article like guys did here - https://developer.mozilla.org/en-AU/docs/Learn/JavaScript/Objects/JSON

Great article. Concise and very clear. I am curious if there is currently a way to export Excel data directly to JSON, instead of to .csv and then converting using a separate utility? Thanks

Quite useful for beginner! jsonlint.com is great tool to validate json format,and i also use jsonhome.com to edit/format json.

๐Ÿ‘ Creative Commons
This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.
  • Deploy on DigitalOcean

    Click below to sign up for DigitalOcean's virtual machines, Databases, and AIML products.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and AI-native businesses

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOceanโ€™s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow โ€” whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

ยฉ 2026 DigitalOcean, LLC.Sitemap.
Dark mode is coming soon.