Fixed issue in JSON body pattern matching