Parse json in cucumber scenario

refactored into test helper