Improved YASON syntax validation

Signed-off-by: Frank Mertens <frank@cyblogic.de>