Use json objects with a bit of sugar.