Adding an exported method for jsonPush that can validate that all
required fields from either the "from" or the "to" side of a push exist.