Handle JSON in r2pipe-python