Moved json parsing outside of an area that locks the thread.