Merge JSON Objects in Java

preview_player
Показать описание
#MergeJSONObjects #JavaMergeJSONObjects #JSONObjectsJava
Like, Share, And Subscribe | Professor Saad Yousuf


CODE:

public class MergeJSON {
@SuppressWarnings("unchecked")
public static void main(String[] args) {
JSONObject jsonObj = new JSONObject();
JSONObject jsonObj1 = new JSONObject(); // second json object
}

}
Рекомендации по теме
Комментарии
Автор

Nice video thank you
What it does and what is the meaning of the
@SuppressWarning(...) ?
When and how to use it?

GooogleGoglee
Автор

Hello sir, how to merge two org.json.JSONArray in Java?

the_coach_of_fitness
Автор

How can I do the same but with a more complete json like this ?
{
"name":"alejandro",
"lastName":"munoz",
"schemas":[
{
"schema1":"1",
"schema2":"2",
"schema3":"3",
"schema4":[
{
"schema4.1":"4.1"
}
]
}
]
}

VS

{
"name":"alejandro",
"lastName":"munoz",
"schemas":[
{
"schema1":"1",
"schema2":"2",
"schema3":"3",
"schema4":[
{
"schema4.2":"4.2"
}
]
}
]
}

alejandromunoz
Автор

Also DOB isn't Date of Birth? How can he be 20 years old already? This 2020 is full of surprises! 😄😉

GooogleGoglee
join shbcf.ru