json serialization for structs added