Difference between JSON and SQL

后端 未结 4 608
小鲜肉
小鲜肉 2021-01-04 13:55

I\'m a newbie at web development, so here\'s a simple question. I\'ve been doing a few tutorials in Django, setting up an SQL database, which is all good. I have now come ac

4条回答
  •  醉话见心
    2021-01-04 14:38

    They are 2 completely different things.

    SQL is used to communicate with databases, usually to Create, Update and Delete data entries.

    JSON provides a standardized object notation/structure to talk to web services.

    Why standardized?

    Because JSON is relatively easy to process both on the front end (with javascript) and the backend. With no-SQL databases becoming the norm, JSON/JSON-like documents/objects are being used in the database as well.

提交回复
热议问题