added feature check for json

This was added to support IE less than 8 when handling JSON data.