.TH J2X 1 2020-06-28 NCBI "NCBI Entrez Direct User's Manual" .SH NAME j2x \- transform JSON data to XML .SH SYNOPSIS \fBj2x\fP [\|\fB\-input\fP\ \fIfilename\fP\|] [\|\fB\-output\fP\ \fIfilename\fP\|] [\|\fB\-set\fP\ \fItag\fP\|] [\|\fB\-rec\fP\ \fItag\fP\|] [\|\fB\-nest\fP\ \fBflat\fP|\fBrecurse\fP|\fBplural\fP|\fBdepth\fP\|] [\|\fB\-timer\fP\|] [\|\fB\-help\fP\|] .SH DESCRIPTION \fBj2x\fP reads JSON data from standard input or a specified file, transforms it to XML with optional formal changes to set and record tags, and writes the result to standard output or a specified file. .SH OPTIONS .SS Data Files .TP \fB\-input\fP\ \fIfilename\fP Read JSON from \fIfilename\fP instead of standard input. .TP \fB\-output\fP\ \fIfilename\fP Write XML to \fIfilename\fP instead of standard output. .SS Parent Object Names .TP \fB\-set\fP\ \fItag\fP Replace set wrapper tag. .TP \fB\-rec\fP\ \fItag\fP Replace record wrapper tag. .SS Nested Array Naming .TP \fB\-nest\fP\ \fBflat\fP|\fBrecurse\fP|\fBplural\fP|\fBdepth\fP Nested array naming policy. .SS Performance Measurement .TP \fB\-timer\fP Report processing duration and rate. .SS Documentation .TP \fB\-help\fP Print usage information, complete with an example pipeline. .SH SEE ALSO .BR efetch (1), .BR enquire (1), .BR nquire (1), .BR t2x (1), .BR transmute (1), .BR xtract (1).