Java - read a JSON file

preview_player
Показать описание
#JSONJavaRead #ReadJSONFileUsingJava

Java - read a JSON file
json, java programming, json formatter, java tutorial, learn java, json schema, java class, json example, java code, java developer, java language, java json, java programming language, core java, json data, learn java online, json format example, java course, object oriented programming, json schema example, java software, learn java programming, java online course, java training, java web development, core java tutorial, json meaning
Рекомендации по теме
Комментарии
Автор

I'm a bad listener, so him yelling at me actually gets me to understand xD

Spham
Автор

Thank you! The lesson helped me so much!

pvignatov
Автор

Perfect practical explanation ! Thank you ! Keep on !

vladanulardzic
Автор

Which shortcut did you use to import package?

butcherbio
Автор

String age = (String) jsonObj.get("age");
System.out.println("age is :" + age);


say i have age as key and its value say 25.
which variable should i store it into ? i am getting error while trying to store it into String and casting it to String.
can you please suggest about it ?

umangsharma
Автор

Thank you for the video Professor.
I have json file locally and I am trying to read its values and edit before I send to server. I followed your video but I am getting below error at line 17 in your video reference,
class org.json.simple.JSONArray cannot be cast to class org.json.simple.JSONObject

Please do help!

sainiranjan
Автор

what json library r you used? I mean the JAR files that you import to your project

ALeN
Автор

how to reading data from json file without key?
or
get keys present in json?

vinayakdhage
Автор

How to make it work for the multiple JSON entries in a file?

stackingflow
Автор

FileNotFoundException :filename.json : open failed : ENOENT ( No such file or directory) but my data.json file already exists in the project directory

patrickrayaisse
Автор

can you if you do this tutorial maybe once again with like multiple json files can you show us how the json looks? cuz me my self i am looking something specific, for example i would like to save each person in a json file but each person has a job, age, birthday etc but i want it to be displayed nicely

qr
Автор

JSONParser constructor takes 3 arguments, how come it does not require you to insert them ?

RealEyes
Автор

Which library did you use? Json-simple-1.1.1?

felipemarcelo
Автор

I am getting the below error. Pls help me "Unexpected character (O) at position 11.
at

RajeshKumar-impi
Автор

is possible read external json file from url ?

vidalperazasanchez
Автор

Hey, where Can I get your JSON File for the example?
Would like to try it out!

simonfelderer
Автор

My JSON file has some value is a number, so how can i take it, im trying with Integer instead of String, like in your video String I replace it by Integer but it didnt work . It said ClassCastException
here some of my JSON file :
{
"height":25,
"id":1,
"name":"aaa",
"rotation":0,
"type":"",
"visible":true,
"width":29,
"x":12,
"y":-116
}

quocthai
Автор

This gives me syntax error in netbeans 8.2. What development platform is being used in the video?

pratikchapadgaonkar
Автор

hey guyzz...i have a question..ok..in my android game data..i found a user.json file but when i open it ..it has a tax that i cant read..means it's unreadable and it's not like simple language .so how i conver into readable file and edit..plzz help

nik
Автор

hi. I am getting a exception that JASONArray cant be typecast as a JASONObject. How to handle it?

pratikchapadgaonkar
welcome to shbcf.ru