implement -r, -e for eval, and -j for json output
support -j for -l