Generate JSON from command-line arguments