JInputCli::serialize

Method to serialize the input.