随机JSON对象生成器 [英] Random JSON object generator

查看:448
本文介绍了随机JSON对象生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个生成随机JSON对象的工具.我想使用此工具对HTTP POST请求进行测试,并在其中使用随机JSON对象.

I need a tool which generates random JSON objects. I want to use this tool to do testing on my HTTP POST requests and use the random JSON object in it.

有什么建议吗?

推荐答案

我建议仅在PHP中构建一个脚本...将数组转换为json非常容易,因此您可以创建一个随机数组并执行以下操作: echo json_encode($array);

i would recommend just building a script in PHP...its really easy to convert arrays to json, so you could just make a randomized array and do: echo json_encode($array);

这篇关于随机JSON对象生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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