Move json decode out of idrac module