Updated JSON call to be asynchronous