lesson patterns for json