![]() |
VOOZH | about |
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.
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.
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
Quiet useful for beginner!
Quite useful for beginner! jsonlint.com is great tool to validate json format,and i also use jsonhome.com to edit/format json.
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.