initialize compound object structs from JSON