What is a good format for command line output when it is being used for further processing?

Posted by Mick on Stack Overflow See other posts from Stack Overflow or by Mick
Published on 2010-04-20T15:09:48Z Indexed on 2010/04/20 15:13 UTC
Read the original article Hit count: 219

Filed under:
|
|
|

I have written a console application in Delphi that queries information from several locations. This application will be launched by another process, and the output to STDOUT will be captured by the launching process.

The information I am retrieving is to be interpreted by the calling application for reporting purposes. What is the best way to output this data to STDOUT so that it can be easily parsed? JSON? XML? CSV? The data, specifically, is remote workstation information, so it will pull things back like running processes, and details about each process.

Does anyone have any experience with this or suggestions?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about console