FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java-Programming-Exercises/JsonCreater.java at master · RoyTien/Java-Programming-Exercises · GitHub
RoyTien
/
Java-Programming-Exercises
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java-Programming-Exercises
/
JsonCreater.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (33 loc) · 1.4 KB
Breadcrumbs
Java-Programming-Exercises
/
JsonCreater.java
Copy path
File metadata and controls
47 lines (33 loc) · 1.4 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
public
class
JsonCreater
{
public
static
void
main
(
String
[]
args
){
JsonCreater
jc
=
new
JsonCreater
();
jc
.
go
();
}
public
void
go
(){
String
json
=
"[{
\"
date
\"
:
\"
May 22
\"
,"
;
json
=
json
+
"
\"
movies
\"
:["
;
for
(
int
i
=
0
;
i
<
5
;
i
++){
json
=
json
+
"{"
;
//Useless
json
=
json
+
"
\"
countries
\"
:[
\"
USA
\"
],
\"
directors
\"
:[{
\"
name
\"
:
\"
Brad Bird
\"
,
\"
nameId
\"
:
\"
nm0083348
\"
}],
\"
filmingLocations
\"
:[
\"
Vancouver
\"
,
\"
British Columbia
\"
,
\"
Canada
\"
],
\"
genres
\"
:[
\"
Action
\"
,
\"
Adventure
\"
,
\"
Mystery
\"
,
\"
Sci-Fi
\"
],
\"
idIMDB
\"
:
\"
tt1964418
\"
,
\"
languages
\"
:[
\"
English
\"
],
\"
metascore
\"
:
\"
66/100
\"
,
\"
originalTitle
\"
:
\"
asdf
\"
,"
;
json
=
json
+
"
\"
runtime
\"
:[
\"
130 min
\"
],
\"
simplePlot
\"
:
\"
Boundy.
\"
,
\"
urlIMDB
\"
:
\"
http://www.imdb.com/title/tt1964418
\"
,"
;
json
=
json
+
"
\"
title
\"
:"
;
json
=
json
+
"
\"
balabala
\"
,"
;
json
=
json
+
"
\"
plot
\"
:"
;
json
=
json
+
"
\"
balabala
\"
,"
;
json
=
json
+
"
\"
rated
\"
:"
;
json
=
json
+
"
\"
balabala
\"
,"
;
json
=
json
+
"
\"
rating
\"
:"
;
json
=
json
+
"
\"
balabala
\"
,"
;
json
=
json
+
"
\"
releaseDate
\"
:"
;
json
=
json
+
"
\"
balabala
\"
,"
;
json
=
json
+
"
\"
urlPoster
\"
:"
;
json
=
json
+
"
\"
balabala
\"
,"
;
//Useless
json
=
json
+
"
\"
votes
\"
:
\"
985
\"
,
\"
writers
\"
:[{
\"
name
\"
:
\"
Damon Lindelof
\"
,
\"
nameId
\"
:
\"
nm0511541
\"
},{
\"
name
\"
:
\"
Brad Bird
\"
,
\"
nameId
\"
:
\"
nm0083348
\"
}],
\"
year
\"
:
\"
2015
\"
"
;
json
=
json
+
"},"
;
}
json
=
json
+
"]}]"
;
System
.
out
.
println
(
json
);
}
}
Back
|
FazBrowse Home
|
New Git URL