Add a couple of generic json utility methods