Allow for json unmarshalling

- shim for backwards compat