#!/bin/bash
echo "{\"field\":\"requiredvalue\"}" > /tmp/foo
./jsoncmp /tmp/foo {\"fields\":[{\"field\":\"requiredvalue\"}]}