我如何将“请求"正文视为JSON文本,而不是解析为网格视图的JSON [英] How can I view the 'request' body as JSON-Text as opposed to the JSON parsed into a grid view

查看:107
本文介绍了我如何将“请求"正文视为JSON文本,而不是解析为网格视图的JSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当存在诸如base64图像之类的较大值时,JSON gridview崩溃. 我仍然可以以文本格式查看正文,但是它没有按预期格式设置文本. 响应部分中提供了JSON-text选项,可以缓解该问题,直到应用程序能够将较大的值解析为json.

JSON gridview crashes when there is a large values like a base64 image. I can still view the body in text format but it doesn't format the text as expected. A JSON-text option as there is in the response section would mitigate the issue until the app is capable parsing large values into json.

推荐答案

您可以将JSON视图转换为Text,它将保存数据并呈现精美打印的JSON文本.

You can convert your JSON view into Text, it will save the data and will render a pretty-printed JSON text.

编辑您的JSON:

切换到文本:

这篇关于我如何将“请求"正文视为JSON文本,而不是解析为网格视图的JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆