0.1.2 added via to the json array :)

This commit is contained in:
Peder Vatn Austad
2024-05-20 12:55:26 +02:00
parent 0448629ade
commit 498914957a

View File

@@ -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 {