Make sure that the json representation is still valid