a little library for checking JSON by rules