Added support for JSON parameter on the mockData method

close #1