add JSONPath support

This commit has been sponsored by ABA-NET.
add --encodejson feature
use Text::CSV instead of incorrect home-grown library
done