Random JSON Object 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?

+5
source share
5 answers

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

+2
source

Check out this service: http://json-generator.appspot.com/ It supports several functions:

  • int $ incr (increment starting from 1)
  • int $randInt (a, b) ( a b)
  • boolean $bool ( true/false)
  • string $firstName/ $lastName ( (1 100) /)
  • $company ( 1 100)
  • $phone ( )
  • $email ( , $name $company)
  • $date ( )
  • $repeat: n n

original post http://habrahabr.ru/blogs/javascript/132286/

+9

, mockJSON, json- appspot, open .

, .

  • @NUMBER
  • @LETTER_UPPER
  • @LETTER_LOWER
  • @MALE_FIRST_NAME
  • @FEMALE_FIRST_NAME
  • @LAST_NAME
  • @EMAIL
  • @DATE_YYYY
  • @DATE_DD
  • @DATE_MM
  • @TIME_HH
  • @TIME_MM
  • @TIME_SS
  • @LOREM
  • @LOREM_IPSUM

Python, , https://github.com/JamesMcMahon/mockjson.py.

+6
+2

I made a tool based on mockJSON that allows you to POSTrequest template JSON instead of using a local plugin, you can check here .

0
source

All Articles