Receives JSON and parses data into model