Random JSON Generator

I need a tool that generates random JSON objects. I want to use this tool to test my HTTP POST requests and use a random JSON object in it.

Any suggestions?

+3
source share
5 answers

Do you use any libraries? YUI, jQuery, prototype? Any of them have built-in support for encoding objects into JSON strings, so you need to create your own function that creates your own random objects and simply passes them to the appropriate JSON encoding methods.

0
source

! / Ben / w

echo '{"/ dev / urandom": "'

echo od -An -N2 -i / dev / urandom

echo '"}'

0

( ) - : http://http-request-generator.appspot.com/ JSON REQUESTS html querystring. , .

, - , .

0

js-schema. :

schema.generate(Object)

. , , , 'a', Number:

schema.generate({a : Number, '*' : Array})
0

Source: https://habr.com/ru/post/1736850/


All Articles