This is a really nice approach to the problem of getting fake data. For the lazy, it responds with your request data if you have any. Super useful if you just want to get parsing with a real response.<p>I'd like to point out though, as I always do when things like this, I'm in the maintainer of a similar project which isn't hosted but is an open source node project: <a href="http://github.com/basicallydan/interfake" rel="nofollow">http://github.com/basicallydan/interfake</a> - if you wanna do a similar thing but make responses more explicit. About the same amount of work up front, but you don't specify responses in requests.<p>Anyway, nice one Ben!
This is a good idea. But I prefer to building a local mock server for my client-side ajax support. There so many tools you can use so it's not a complicated task. Usually, I use Grunt to build a local server to response mock data to requests.