First step in retrieving selective data in JSON format