Skip to content

Commit

Permalink
Fix Invalid JSON for .gchart
Browse files Browse the repository at this point in the history
.. the irony that adding a __LAST__ property to ensure we
   had well formed JSON made sure it was /always/ invalid.

.. see fd546b4 for impact (almost none, but hey).
  • Loading branch information
liversedge committed Aug 15, 2021
1 parent 5fd1a08 commit 195514c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Charts/GoldenCheetah.cpp
Expand Up @@ -974,7 +974,7 @@ GcChartWindow::serializeChartToQTextStream(QTextStream& out) {

// a last unused property, just to make it well formed json
// regardless of how many properties we ever have
out <<"\t\t\t\"__LAST__\":\"1\",\n";
out <<"\t\t\t\"__LAST__\":\"1\"\n";

// end here, only one chart
out<<"\t\t}\n\t}\n}";
Expand Down

0 comments on commit 195514c

Please sign in to comment.