use multithreading for json parsing