auto-convert from json to mark