When do you use map vs flatMap in RxJava?
map transform one event to another. flatMap transform one event to zero or more event. (this is taken from IntroToRx) As you want to transform your json to an object, using map should be enough. Dealing with the FileNotFoundException is another problem (using map or flatmap wouldn’t solve this issue). To solve your Exception problem, … Read more