testing struct to json