Basic of JavaScript Object Notation(JSON) and Flutter
A Thread🧵
JavaScript Object Notation or JSON is an open-standard file format that uses human-readable text to transmit data objects consisting of attributes- value pairs and array data types
In simple language, JSON is simply a format in which you can transfer the data from client to server and server to client
When you are making network-connected apps using flutter, then chances are that it needs to consume some good old JSON, sooner or later.
so let's discuss the basics of JSON in terms of flutter
Flutter has incredible support for this format as it allows you to convert objects from and to JSON very quickly.
Here in the code attached, What’s inside curly brackets is called a JSON object and it’s always made up of a string, which is the key of the field, and a value which can be a string, a number, a boolean, a list, null or another object.
In Flutter, you can decide between manually parsing strings using facilities from import "dart:convert", or using automatic code generation, which does most of the work automatically.
Both ways are fine but you’ll see that code generation simplifies the maintenance a lot, especially for large JSON objects.
In all those cases where there’s the need to deal with a list or small objects, parsing and maintaining JSON manually is fine.
When JSON strings are very complex, with many nested objects and lists, it would be better to use code generation which handles most of the tedious work automatically.
If you want to understand JSON in simple terms check out this video:-
Thank you for Reading
I am Vinay, a developer from India, sharing some of the knowledge I gain in my daily life as a programmer and as a Human being
If you like this post, Make sure to
✅Like this post
✅Retweet it
✅ Follow @Vinaystwt for more such content
If you don’t want to miss your weekly parcel of learning, then don’t forget to subscribe to the "Insane Learner" newsletter getrevue.co/profile/vinays…
If you like this Thread, make sure to Retweet it from below
🔹pwd
Used to find out the path of the current working directory (folder) you’re in.
The command will return an absolute (full) path, which is basically a path of all the directories that starts with a forward slash (/).
An example of an absolute path is /home/username.
🔹cd
Used to change your current directory
for example:- cd workspace
There are some shortcuts to help you navigate quickly:
-> cd .. to move one directory up
-> cd to go straight to the home folder
-> cd- to move to your previous directory
While Learning Web development or Creating some project in Python or Creating an app using flutter; at some point in time, you will come across the term API and must be wondered what exactly an API is?
Let's understand what an API is in a simple but effective way. ↓↓
Suppose you finally got a chance to go on a date with your partner after this tedious lockdown phase due to Covid-19.
So you decided to visit a restaurant for dinner, and both of you chose the dish you wanted to order and called the Waiter for an order.
So the Waiter is finally at your table, and you order the dishes you want to eat.
Now the Waiter asks the chef to prepare your dish and after some time when the chef finally prepared your dish waiter brings your favorite food to your table.
Whether you are a Programmer writing code in JavaScript or Python or you are an Entrepreneur running a Startup, Today your one of the most crucial needs is the Internet.
But have you ever wondered how does this internet exactly work
Let's Find out ↓↓
The total number of Internet users has grown from 413 million in 2000 to 4.6 Billion active users in January 2021.
Today Internet is the basic need of almost every living being, but did you know How this Internet( earlier known as ARPANET in 1969) works
Basically, the Internet works on a large number of computer systems that communicate with each other, or we can say it is a network of networks.
where a network is a group of connected computers that send and receive data from each other.