+ elif [[ "$RESULT" == "json-array-size:"* ]]; then
+ count=${RESULT:16:${#RESULT}}
+ #Find dir of the common dir
+ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+ echo $body > .tmp.json
+ res=$(python ${DIR}/count_json_elements.py .tmp.json)
+ if [ $res -eq $count ]; then
+ echo " Body (array size) as expected"
+ else
+ echo " Expected json array size: "$count
+ echo "Exiting....."
+ exit 1
+ fi