[aur-dev] Absence of terminating newline in RPC requests

Alad Wenter alad at archlinux.info
Thu Sep 22 11:39:07 UTC 2016


JSON from the RPC interface seems to not contain a terminating newline,
regardless of version or type specified. I am curious if there is a
particular reason for this, as the POSIX standard defines text files to
contain lines with terminating newlines. [1] [2]

This is more noticeable when merging the resulting files to a valid JSON
structure, e.g. to display the union of various search results. As a
comparison, journalctl - json does terminate lines with a newline.

Regards,

Alad

[1]
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_397

[2]
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206


More information about the aur-dev mailing list