Tweaking cmake usage
Updating JSON profile serialization