File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -476,8 +476,8 @@ def args(self):
476476 def run (self , arguments , options ):
477477 objectToPrint = arguments [0 ]
478478 pretty = 1 if options .plain is None else 0
479- jsonData = fb .evaluateObjectExpression ('[NSJSONSerialization dataWithJSONObject:{} options:{} error:nil]' .format (objectToPrint , pretty ))
480- jsonString = fb .evaluateExpressionValue ('(NSString*)[[NSString alloc] initWithData:{} encoding:4]' .format (jsonData )).GetObjectDescription ()
479+ jsonData = fb .evaluateObjectExpression ('[NSJSONSerialization dataWithJSONObject:(id) {} options:{} error:nil]' .format (objectToPrint , pretty ))
480+ jsonString = fb .evaluateExpressionValue ('(NSString*)[[NSString alloc] initWithData:(id) {} encoding:4]' .format (jsonData )).GetObjectDescription ()
481481
482482 print jsonString
483483
You can’t perform that action at this time.
0 commit comments