Fix some bugs in lesson requests handling (incoming json data).