You can do this through
FermionicOperator, it is Deprecated in the newer update of qiskit though so you will get warning about this issue.
Here is an example, I just made up some random second-quantized fermionic one-body operator (h1) to demonstrate how this works under the parity mapping:
b = np.random.rand(2,2)
one_body_operator = (b + b.T)/2
ferOp = FermionicOperator(h1=one_body_operator )
qubitOp = ferOp.mapping(map_type='parity' , threshold=0.00000001)
print( qubitOp.print_details() )
which gives you the qubits representation:
If you want to use Jordan-Wigner, then specify
map_type = 'jordan_wigner' . Similarly,
map_type = 'bravyi_kitaev' for Bravyi Kitaev mapping.
Here is the link to Qiskit Ferminonic operator for more details.