parent
5171207ea3
commit
56a6a7d550
4 changed files with 19 additions and 5 deletions
@ -1,7 +1,12 @@ |
||||
# Json |
||||
# JSON |
||||
|
||||
JSON (JavaScript Object Notation) is a simple data interchange format used to communicate with server, store and retrieve data from it. |
||||
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write and easy for machines to parse and generate. In Flutter, JSON is used for transmitting data between the client and server, typically over an HTTP connection. |
||||
|
||||
Flutter provides a number of libraries for working with JSON data, including the `dart:convert` library, which provides support for encoding and decoding JSON data. |
||||
|
||||
To encode a Dart object to a JSON string, you can use the `jsonEncode` function from the `dart:convert` library. To decode a JSON string to a Dart object, you can use the jsonDecode function. |
||||
|
||||
Visit the following resources to learn more: |
||||
|
||||
- [JSON and serialization](https://docs.flutter.dev/development/data-and-backend/json) |
||||
- [Using JSON](https://dart.dev/guides/json) |
@ -1 +1,10 @@ |
||||
# Working with apis |
||||
# Working with APIs |
||||
|
||||
Working with APIs in Flutter involves making HTTP requests to a server and processing the responses. Flutter provides a number of libraries for making HTTP requests, including `dart:io` and `http`. |
||||
|
||||
The `http` library is a popular choice for making HTTP requests in Flutter, as it is easy to use and provides support for HTTP methods such as GET, POST, PUT, DELETE, and more. |
||||
|
||||
Learn more from the following resources: |
||||
|
||||
- [Using Google APIs](https://dart.dev/guides/google-apis) |
||||
- [How to work with APIs in Flutter?](https://www.youtube.com/watch?v=uVo7HDWDUEQ) |
Loading…
Reference in new issue