#Deserializing JSON field named "@something" to struct

1 messages · Page 1 of 1 (latest)

grave magnet
#

I would like to deserialize:

{
  "@something": "hello"
}

into:

const MyStruct = struct {
  something: []u8,
};

how would one go about this/something similar?

obsidian agate
#

@"@something": []u8