Issue 22 initial support for json subtypes