ur5us has quit [Ping timeout: 260 seconds]
deavmi has quit [Ping timeout: 252 seconds]
deavmi has joined #crystal-lang
ur5us has joined #crystal-lang
oprypin has quit [Ping timeout: 245 seconds]
oprypin has joined #crystal-lang
oz has quit [*.net *.split]
ox has joined #crystal-lang
mikko has quit [*.net *.split]
raz has quit [*.net *.split]
^raz^ has joined #crystal-lang
mikko has joined #crystal-lang
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #crystal-lang
ur5us_ has joined #crystal-lang
ur5us has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
mps has joined #crystal-lang
hightower2 has quit [Ping timeout: 268 seconds]
<
mps>
hi, anyone have or knows for xml to json converter
r0bby has joined #crystal-lang
oprypin has quit [Ping timeout: 252 seconds]
cenan has joined #crystal-lang
ur5us_ has quit [Ping timeout: 268 seconds]
oprypin has joined #crystal-lang
<
FromGitter>
<Blacksmoke16> using the `.` filter would essentially be the JSON representation of the XML
<
FromGitter>
<Blacksmoke16> however it does require `jq`
<
mps>
Blacksmoke16: we have both (oq and jq) on alpine
<
FromGitter>
<Blacksmoke16> well there you got :)
<
FromGitter>
<Blacksmoke16> go*
<
mps>
i upgrade them regularly when they are released
<
FromGitter>
<Blacksmoke16> other than that im not aware of any other implementations, at least that would allow for like `XML.parse(data).to_json`
<
mps>
heh, that is what I need
<
FromGitter>
<Blacksmoke16> ❤️
oprypin has quit [Ping timeout: 268 seconds]
oprypin has joined #crystal-lang
oprypin has quit [Ping timeout: 268 seconds]
oprypin has joined #crystal-lang
ox is now known as oz
oprypin has quit [Ping timeout: 268 seconds]
oprypin has joined #crystal-lang
oprypin has quit [Ping timeout: 268 seconds]
oprypin has joined #crystal-lang
oprypin has quit [Ping timeout: 268 seconds]
oprypin has joined #crystal-lang
oprypin has quit [Read error: Connection reset by peer]
FromGitter has quit [Read error: Connection reset by peer]
oprypin_ has joined #crystal-lang
FromGitter has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
oprypin_ has quit [Quit: Bye]
oprypin has joined #crystal-lang
FromGitter has joined #crystal-lang
hightower2 has joined #crystal-lang
<
FromGitter>
<jrei:matrix.org> How can XML be converted to JSON? There are several ways of doing that for the nodes metadata
<
FromGitter>
<jrei:matrix.org> That's one way, I'm not aware of a standard way
<
FromGitter>
<Blacksmoke16> i doubt there is a standard way
<
FromGitter>
<jrei:matrix.org> They just put attributes as keys
<
FromGitter>
<Blacksmoke16> how would you go back tho?
<
FromGitter>
<Blacksmoke16> idt you could
<
FromGitter>
<jrei:matrix.org> @Blacksmoke16 have you done a `XML::Serializable` too?
<
FromGitter>
<Blacksmoke16> no, just a stream based one for oq
<
FromGitter>
<Blacksmoke16> badgerfish looks a lot like the first just using a `$` instead of `#` for text no?
<
FromGitter>
<Blacksmoke16> er `#text`
<
FromGitter>
<jrei:matrix.org> I think so
<
FromGitter>
<jrei:matrix.org> May be interesting to add XML Crysalizer, yet no one needed it.
<
FromGitter>
<Blacksmoke16> it's a pita
<
FromGitter>
<jrei:matrix.org> I believe you :)
<
FromGitter>
<Blacksmoke16> even having it tho would be a pain, as you'd need a way to know if you should make an array or object
<
FromGitter>
<Blacksmoke16> so would need to keep a few element names in memory or something, idk
<
FromGitter>
<jrei:matrix.org> Agreed on this
<
FromGitter>
<Blacksmoke16> `xq` python lib uses parsing bindings and does it so there's deff a way
cenan has quit [Ping timeout: 268 seconds]
ur5us_ has joined #crystal-lang