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:-

for Flutter Devs, check out this official flutter guide by the flutter community on JSON
docs.flutter.dev/development/da…
For non Flutter developers, here are some resources to learn more about JSON

W3schools:- w3schools.com/js/js_json_int…

Awesome JSON:-
github.com/burningtree/aw…
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

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Vinay Sharma

Vinay Sharma Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Vinaystwt

27 Dec
18 Linux Commands every programmer should know

A Thread🧵
🔹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
Read 22 tweets
26 Dec
7 Websites you Won’t Believe Exist 🤯

These Websites are very important for you if you are a Web Developer or App Developer

Including One *BONUS* Resource!!

A Thread↓
1⃣Shortly AI
AI-powered tool can continue writing for you in order to transform your ideas into a fully fleshed-out text.

🔗shortlyai.com
2⃣Archive
Internet Archive is a non-profit library of millions of free books, movies, software, music, websites, and more.

🔗archive.org
Read 12 tweets
25 Dec
Twitter is Free University, tonnes of knowledge out there to consumes

But 98.8% don’t consume the right knowledge

Here are the top 10 best Threads of the week you shouldn’t miss 🧵
Read 14 tweets
24 Dec
Programming in Python or JavaScript or dart or Java, every programmer need help from youtube at some point in time so here we go

50+ Youtube channels to learn Programming 🧵 ↓↓
🔹FreeCodeCamp:- Wikipedia for programmers for every getting content on literally every topic.

🔗youtube.com/c/Freecodecamp
🔹Academind:- Academind uploads video tutorials on web development and cover skills like Python, Github, etc.

🔗youtube.com/c/Academind
Read 54 tweets
23 Dec
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.
Read 21 tweets
22 Dec
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 ↓↓ Image
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 Image
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. Image
Read 19 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(