Skip to content

Commit 1181b31

Browse files
committed
Added Location ID to output json
1 parent 268c556 commit 1181b31

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Location.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Location::~Location()
1212

1313
string Location::ToJson()const {
1414
// string res = "{\n\t\"country\":\"" + country + "\",\n\t\"city\":\"" + city + "\",\n\t\"Movies\":[\n\t";
15-
string res = "{\n\t\"country\":\"" +
15+
string res = "{\"id\":\"" +
16+
id + "\"," +
17+
"\n\t\"country\":\"" +
1618
country + "\",\n\t\"city\":\"" +
1719
city + "\",\n\t\"address\":\"" +
1820
address + "\"\n}";

src/fcgi

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)