Fix isJSON
Thanks to Drainedsoul