0.1.2 added via to the json array :)
This commit is contained in:
4
main.go
4
main.go
@@ -287,6 +287,10 @@ func printData(data *Data) {
|
|||||||
jsonObject["JourneyNote"] = journey.JourneyNote
|
jsonObject["JourneyNote"] = journey.JourneyNote
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if journey.Via.PlaceName != "" {
|
||||||
|
jsonObject["Via"] = journey.Via.PlaceName
|
||||||
|
}
|
||||||
|
|
||||||
// Convert the JSON object to a JSON string
|
// Convert the JSON object to a JSON string
|
||||||
jsonString, err := json.Marshal(jsonObject)
|
jsonString, err := json.Marshal(jsonObject)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user