json schema and structs finally working together