ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ur5us has joined #crystal-lang
ua_ has quit [Ping timeout: 260 seconds]
ua_ has joined #crystal-lang
ur5us has quit [Ping timeout: 245 seconds]
Chillfox has quit [Quit: Leaving]
casionaut has joined #crystal-lang
casionaut has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
<frojnd> I am using sqlitedb and one filed is json field. But when I pull that from db and and I do data.class it says "String" So crystal thinks it's a String. (json string) ?
<frojnd> Anyways what's the best way to serialize this string that is json string?
<frojnd> Well actually parsing it
<frojnd> JSON.parse(json_string)
ur5us has quit [Ping timeout: 264 seconds]
taupiqueur has joined #crystal-lang
<frojnd> Hm
<frojnd> How should I debug this. I have json_string and when running JSON.parse(json_string) I get: Error: no overload matches 'JSON.parse' with type (Float64 | Int64 | Slice(UInt8) | String | Nil)
<frojnd> json_string looks like this: `{"blog_title":"1. januar 2018","title":"null","verse_id":""}`
<frojnd> Ok I see why
<frojnd> Because my json_string must be wrapped inside double quotes like this: `json_data = JSON.parse("#{json_string}")`
<frojnd> And now when I json_data.class I get JSON::Any
taupiqueur_ has joined #crystal-lang
taupiqueur has quit [Read error: Connection reset by peer]
adam12 has quit [Quit: The Lounge - https://thelounge.chat]
adam12 has joined #crystal-lang
taupiqueur_ has quit [Quit: taupiqueur_]
<FromGitter> <Dan-Do> Or you can use `json_string.to_s`
Elouin has quit [Read error: Connection reset by peer]
Elouin has joined #crystal-lang
guniberas has joined #crystal-lang
casionaut has joined #crystal-lang
hightower2 has quit [Ping timeout: 265 seconds]
wolfshappen has quit [Ping timeout: 245 seconds]
wolfshappen has joined #crystal-lang
wolfshappen has quit [Ping timeout: 265 seconds]
wolfshappen has joined #crystal-lang
hightower2 has joined #crystal-lang
<FromGitter> <jwaldrip:matrix.org> Has anyone tried to build crystal apps inside docker for mac on an m1 yet?
casionaut has quit [Quit: o7]
<FromGitter> <maxfierke> I've done it for aarch64 on Alpine via Docker for Mac on an M1
<FromGitter> <maxfierke> but it's all via Docker, so didn't need to do anything special
<antoni> I've had success running and compiling stuff natively on M1 via the new aarch64 brew release — if that matters at all.
<FromGitter> <jwaldrip:matrix.org> It looks like there is no prebuilt docker image for arm
sagax has quit [Remote host closed the connection]
<FromGitter> <maxfierke> not officially, but jhass has some built for aarch64. I'll find the link
<FromGitter> <maxfierke> https://hub.docker.com/r/jhass/crystal/tags looks like the latest is for 1.0.0
<FromGitter> <maxfierke> could probably leverage those to build for 1.2.1
<FromGitter> <jwaldrip:matrix.org> Found these: https://hub.docker.com/r/84codes/crystal
<FromGitter> <maxfierke> oh sick!! that's new!
casionaut has joined #crystal-lang
ur5us has joined #crystal-lang
hightower2 has quit [Ping timeout: 264 seconds]
casionaut has quit [Quit: o7]
ur5us has quit [Ping timeout: 260 seconds]
dostoyevsky2 has quit [Ping timeout: 244 seconds]
dostoyevsky2 has joined #crystal-lang
Chillfox has joined #crystal-lang