handle elements that appear optionally in the JSON input
Merge pull request #11 from kristofvb/master

handle elements that appear optionally in the JSON input