From 82b86efa776a15a45fa7fa467a015b2cce9b9c4a Mon Sep 17 00:00:00 2001 From: Gerry Nelson Date: Fri, 21 Feb 2020 14:33:59 -0500 Subject: [PATCH] add simplejson to callrestapi --- callrestapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/callrestapi.py b/callrestapi.py index 3c1bf5e..6e0ac32 100755 --- a/callrestapi.py +++ b/callrestapi.py @@ -18,6 +18,7 @@ # 08JUN2018 Print json instead of pprint of easier result parsing # 08OCT2018 make printed json pretty # 26OCT2018 call print function +# 20FEB2020 support simplejson # @@ -48,7 +49,7 @@ parser.add_argument("-m","--method", help="Enter the REST method.",default="get" parser.add_argument("-i","--inputfile",help="Enter the full path to an input json file",default=None) parser.add_argument("-a","--accepttype",help="Enter REST Content Type you want returned e.g application/vnd.sas.identity.basic+json",default="application/json") parser.add_argument("-c","--contenttype",help="Enter REST Content Type for POST e.g application/vnd.sas.identity.basic+json",default="application/json") -parser.add_argument("-o","--output", help="Output Style", choices=['csv','json','simple'],default='json') +parser.add_argument("-o","--output", help="Output Style", choices=['csv','json','simple','simplejson'],default='json') parser.add_argument("-t","--text", help="Display Simple Text Results.", action='store_true') args = parser.parse_args()