added optional options on json response

I have been added optional options to the ```setContent``` method at the ```JsonResponse``` class.

See more at:
http://de2.php.net/json_encode