Avoid feeding a sequence to contains()

when checking code samples for { or [ (to see if there's a json body)

Closes-Bug: 1289568

Change-Id: Ie2b8ec2d3b4091ad5fee30a8e3419de090d95394
Merge "Avoid feeding a sequence to contains()"