Move json parsing into YourDataModel.
A little style change and an optional safety check