ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 244 seconds]
jmdaemon has quit [Ping timeout: 265 seconds]
HumanG33k has quit [Ping timeout: 250 seconds]
HumanG33k has joined #crystal-lang
<FromGitter>
<stellarpower> Is there a really quick way I can make JSON serialisation/deserialisation case-insensitive? Or does it just involve biting the bullet?
<FromGitter>
<stellarpower> I wanted to copy the format from some other code we have in .net, and because the properties are in PascalCase, they wouldn;t be valid non-constant identifiers in Crystal.
<FromGitter>
<stellarpower> Don't suppose there's a quick switch I can flick somewhere to make the parsing mechanism flexible around case, if there aren't going to be any conflicts.
<FromGitter>
<Blacksmoke16> you'd have to annotate each ivar with the `JSON::Field` annotation to set the key to use
<FromGitter>
<stellarpower> Figured as much. Oh well, thanks!