|
@@ -87,7 +87,10 @@ public class FastJsonHttpMessageConverter extends AbstractHttpMessageConverter<O
|
|
|
ResponseMessage message = (ResponseMessage) obj;
|
|
|
if (message.isSuccess() && message.isOnlyData())
|
|
|
obj = message.getData();
|
|
|
- text = JSON.toJSONString(obj, parseFilter(message), features);
|
|
|
+ if (obj instanceof String)
|
|
|
+ text = ((String) obj);
|
|
|
+ else
|
|
|
+ text = JSON.toJSONString(obj, parseFilter(message), features);
|
|
|
if (callback == null) callback = message.getCallback();
|
|
|
} else {
|
|
|
text = JSON.toJSONString(obj, features);
|