GoReadyMade interview question

Parse a recipe object from JSON and update it based on some provided rules