You have to write a function to convert your struct into a JSON representation - objects map well. The tjson package provides Typed Racket support for JSON:
Most (All?) Racket JSON libraries expect objects to be hash tables with symbol keys. the tjson jsobject function converts an alist to one, with constraints on the argument type so it only gets Racket values that map to json types. Creating the hash table directly is more efficient but might result in less useful errors when using invalid types.