XML Output: libxo - provide single API to output TXT, XML, JSON and HTML

Baptiste Daroussin bapt at FreeBSD.org
Mon Jul 28 05:53:43 UTC 2014


On Sun, Jul 27, 2014 at 10:42:17PM -0700, Simon J. Gerraty wrote:
> 
> On Sat, 26 Jul 2014 19:29:04 -0700, Jos Backus writes:
> >It's a little sad to see that the more human-friendly and expressive YAML
> >format appears to not be supported. Instead, here too we are stuck with
> 
> Is there a use case for something like vmstat outputting YAML?
> It is a simple format, I guess it could be added, especially if it has
> no format quirks worse that HTML and JSON.
> Note: I'm just speculating.

YAML is all but a simple format, creating a subset of YAML that is good enough
is a simple format :), exporting a complete YAML (strongly typed etc) is
something else.

As machine readable format YAML is a nightmare to parse, JSON is very simpler
and easier (while json being a valid subject of YAML).

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20140728/8978c9ad/attachment.sig>


More information about the freebsd-arch mailing list