diff options
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 6b4c610e..ad412f44 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -1825,7 +1825,10 @@ void json_aivdm_dump(const struct ais_t *ais, switch (ais->type6.fid) { case 21: str_appendf(buf, buflen, - "\"country\":\"%s\",\"locode\":\"%s\",\"section\":\"%s\",\"terminal\":\"%s\",\"hectometre\":\"%s\",\"eta\":\"%u-%uT%u:%u\",\"tugs\":%u,\"airdraught\":%u}", + "\"country\":\"%s\",\"locode\":\"%s\"," + "\"section\":\"%s\",\"terminal\":\"%s\"," + "\"hectometre\":\"%s\",\"eta\":\"%u-%uT%u:%u\"," + "\"tugs\":%u,\"airdraught\":%u}\r\n", ais->type6.dac200fid21.country, ais->type6.dac200fid21.locode, ais->type6.dac200fid21.section, @@ -1844,7 +1847,7 @@ void json_aivdm_dump(const struct ais_t *ais, "\"section\":\"%s\"," "\"terminal\":\"%s\",\"hectometre\":\"%s\"," "\"eta\":\"%u-%uT%u:%u\"," - "\"status\":%u,\"status_text\":\"%s\"}", + "\"status\":%u,\"status_text\":\"%s\"}\r\n", ais->type6.dac200fid22.country, ais->type6.dac200fid22.locode, ais->type6.dac200fid22.section, @@ -1859,7 +1862,7 @@ void json_aivdm_dump(const struct ais_t *ais, break; case 55: str_appendf(buf, buflen, - "\"crew\":%u,\"passengers\":%u,\"personnel\":%u}", + "\"crew\":%u,\"passengers\":%u,\"personnel\":%u}\r\n", ais->type6.dac200fid55.crew, ais->type6.dac200fid55.passengers, |