faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 244 seconds]
feepbot has joined #amber
<FromGitter> <sam0x17> @drujensen in granite, what if I want to actually use a `JSON::Any` column with no converter?
<FromGitter> <sam0x17> should I just make a `Json(JSON::Any, JSON::Any)` converter?
<FromGitter> <Blacksmoke16> do the drivers support `JSON::Any`?
<FromGitter> <sam0x17> the pg one does I know for sure
<FromGitter> <Blacksmoke16> i.e. is the column just a varchar or is actually a `JSON` column?
<FromGitter> <sam0x17> or my memory is lying
<FromGitter> <Blacksmoke16> no looks like it does
<FromGitter> <Blacksmoke16> cant you just type the column as `JSON::Any`?
<FromGitter> <sam0x17> then you get: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5eb02aad7975db7ebfe3112b]
<FromGitter> <Blacksmoke16> rip
<FromGitter> <sam0x17> so I told the junior dev asking this to try doing a `Json(JSON::Any, JSON::Any)` dummy converter we'll see if that works
<FromGitter> <Blacksmoke16> if not saving as a `String` and reading as `JSON::Any` might do the trick
<FromGitter> <sam0x17> yeah that's my backup
<FromGitter> <Blacksmoke16> prob should support `JSON::Any` since its not really a custom type
<FromGitter> <Blacksmoke16> https://github.com/amberframework/granite/blob/master/src/granite/type.cr iirc just add it to here