JSON parser using promise/A+ to handle success and failure gracefully.