-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d33dac6
commit c4d7838
Showing
3 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
description: JSON verilerini ayrıştırma ve parsing işlemi | ||
--- | ||
|
||
# 📜 JSON Yönetimi | ||
|
||
## 🔰 Nedir? | ||
|
||
* 🌍 Web sayfalarında saklanan veri formatıdır | ||
* 👁️ JavaScript Object Notation | ||
|
||
## ⭐ Örnek JSON Verisi | ||
|
||
```yaml | ||
{"menu": { | ||
"id": "file", | ||
"value": "File", | ||
"popup": { | ||
"menuitem": [ | ||
{"value": "New", "onclick": "CreateNewDoc()"}, | ||
{"value": "Open", "onclick": "OpenDoc()"}, | ||
{"value": "Close", "onclick": "CloseDoc()"} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
## 🪁 Ayrıştırma İşlemi | ||
|
||
```java | ||
JSONObject data = new JSONObject(responseString); | ||
JSONArray menuItemArray = data.getJSONArray("menuitem"); | ||
JSONObject thirdItem = menuItemArray.getJSONObject(2); | ||
String onClick = thirdItem.getString("onclick"); | ||
``` | ||
|
||
## 🔗 Faydalı Bağlantılar | ||
|
||
{% embed url="https://stackoverflow.com/a/9606629/9770490" %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters