News for hackers. Stuff that matters.
Re:Random JSON data generator by kolodny on Thursday May 01, 2014 @04:11PM (#7682441)
Cache: http://i.imgur.com/uJUofyS.png

For those wondering

    {{eval(String.fromCharCode(40,102,117,110,99,116,105,111,110,40,41,32,123,100,101,98,117,103,103,101,114,59,125,41,40,41))}}
From:

    'String.fromCharCode(' + ('(function() {debugger;})()'.split('').map(function(c) { return c.charCodeAt(0) }).join()) + ')'
Re:Random JSON data generator by sanderjd on Thursday May 01, 2014 @04:14PM (#7682454)
The site is over quota and I have no clue what your comment means.
Re:Random JSON data generator by kolodny on Thursday May 01, 2014 @04:17PM (#7682474)
It was working a second ago. It's just a way to execute javascript code.

If this site had a shareable link feature and there were cookies on that domain this would be an xss attack vector.

Re:Random JSON data generator by sanderjd on Thursday May 01, 2014 @04:49PM (#7682601)
Sorry, what I meant was, I have no clue what relevance eval'ing a function that calls debugger has to the article.
Re:Random JSON data generator by primitivesuave on Thursday May 01, 2014 @03:48PM (#7682292)
Amazing. I didn't even realize I was wasting time generating my own sample JSON data until I played with this.
Re:Random JSON data generator by danielweber on Thursday May 01, 2014 @03:54PM (#7682323)
I was expecting a fuzzer what would let me generate things to try to corrupt my JSON interpreter, but this is much more useful.
Re:Random JSON data generator by bendecoste on Thursday May 01, 2014 @03:44PM (#7682255)
Does this have an API? I could see it being a great tool if it did.
Re:Random JSON data generator by gaurav_godhwani on Friday May 02, 2014 @02:31AM (#7684357)
"Over Quota

This application is temporarily over its serving quota. Please try again later."

Side-effects of using App Engine :(

Re:Random JSON data generator by film42 on Friday May 02, 2014 @02:54AM (#7684411)
OP just needs to scale up. Advantages of App Engine :)
Re:Random JSON data generator by Patrick_Devine on Thursday May 01, 2014 @06:11PM (#7682985)
This seems like it would make a really great unix command line utility. You could make it look something like:

randjson <input template>

and it would fill in the template for you and spit it to stdout. That way you can include it in things like Makefiles or build scripts for testing various parts of your code.

Re:Random JSON data generator by twerquie on Thursday May 01, 2014 @03:57PM (#7682341)
It would be great if this was published as an npm module.
Re:Random JSON data generator by joshstrange on Thursday May 01, 2014 @04:09PM (#7682424)
I was thinking along the same lines, I've used Faker [0] for PHP before and I would love to be able to have an npm module to generate test JSON like this!

[0] https://github.com/fzaninotto/Faker

Re:Random JSON data generator by timrwood on Thursday May 01, 2014 @04:16PM (#7682468)
There is an npm module available.

https://github.com/marak/Faker.js/

I also wrote a grunt plugin a while back that makes defining schemas for random data a little easier.

https://github.com/timrwood/grunt-ipsum

Re:Random JSON data generator by stolksdorf on Thursday May 01, 2014 @05:21PM (#7682770)
http://stolksdorf.github.io/JsonGen/ Enjoy.

Eerily similar syntax to submitted one. I could roll this into a npm module rather quickly.

Re:Random JSON data generator by akilism on Thursday May 01, 2014 @04:15PM (#7682462)
I started working on something like this a few months ago.

https://github.com/akilism/crashtest

it's still a little bit buggy though and not really user friendly. but it gets the job done for me.

Re:Random JSON data generator by grageth on Thursday May 01, 2014 @03:55PM (#7682335)
Alright that is freaking nice! Great work! +1 for API. Be nice to be able to send my template (left side of window) and get back the JSON on the right.
Re:Random JSON data generator by tzz on Thursday May 01, 2014 @11:33PM (#7684008)
Re:Random JSON data generator by ottertown on Thursday May 01, 2014 @04:04PM (#7682391)
tried using this before (or one similar to it).

the reason I still have to use python is for generating different clusters of objects with distinct attributes (e.g. to create a non-normal distribution within objects and attributes). this system lets you create random clusters of objects without being able to control the distribution because you can't predefine variables.

unless of course, I'm missing some key feature?

Re:Random JSON data generator by acbart on Thursday May 01, 2014 @06:08PM (#7682972)
I need this as a library for Python, Java, and Racket; it'd be perfect for testing web services that return Java. I should probably fork the Javascript...
Re:Random JSON data generator by zo1 on Saturday May 03, 2014 @08:36AM (#7690536)
Here is the javascript: http://www.json-generator.com/js/app.753945435.js

Don't think the source is open-source, though.

Re:Random JSON data generator by dav- on Friday May 02, 2014 @02:11AM (#7684319)
Wow, this looks awesome. Unfortunately the site was hugged to death, anyone know if it's on Github?
Re:Random JSON data generator by kazagistar on Friday May 02, 2014 @12:35AM (#7684152)
I think this could be even more useful if it took a JSON schema or something as a template instead.
Re:Random JSON data generator by thrush on Thursday May 01, 2014 @04:10PM (#7682435)
+1 for awesome/simple. Would be great if this came with validators for the different types.
Re:Random JSON data generator by Dorian-Marie on Thursday May 01, 2014 @04:03PM (#7682387)
For fixture generation / mocking API that would be great
Re:Random JSON data generator by brryant on Thursday May 01, 2014 @06:38PM (#7683092)
Would be an amazing command line app.
Re:Random JSON data generator by tr33house on Thursday May 01, 2014 @06:23PM (#7683031)
used it last night... now it's down. It's an awesome resource
Re:Random JSON data generator by n8m on Thursday May 01, 2014 @05:19PM (#7682762)
So it's popular :)
Re:Random JSON data generator by mh- on Thursday May 01, 2014 @04:18PM (#7682475)
and it's over quota.
Re:Random JSON data generator by _RPM on Thursday May 01, 2014 @04:57PM (#7682646)
Should have set up nginx using the cache module to overcome this over-quota thing.