Extract json dealing from main Activity