Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么获取网络返回的原始json字符串? #3

Open
RondaHo opened this issue Feb 9, 2018 · 1 comment
Open

怎么获取网络返回的原始json字符串? #3

RondaHo opened this issue Feb 9, 2018 · 1 comment

Comments

@RondaHo
Copy link

RondaHo commented Feb 9, 2018

有没有什么方法直接获取原始json字符串,没有转为responseObject之前的字符串。有些时候需要打印一下该字符串,比如responseObject为nil,但是返回成功,和后台联调接口的时候经常用到

@xiangfly11
Copy link

xiangfly11 commented Jan 21, 2019

有没有什么方法直接获取原始json字符串,没有转为responseObject之前的字符串。有些时候需要打印一下该字符串,比如responseObject为nil,但是返回成功,和后台联调接口的时候经常用到

我的理解你的responseObject因该是转换成你需要的业务模型之后的对象类型吧,如果是这样的话,你只需要在转换成该对象类型前的网络响应位置打印就可以了。一般来说返回的格式都是JSON。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants