Parsing JSON payload.