add spec for ParseJson middleware