#(mrskeleton) How to load usercache.json?

11 messages · Page 1 of 1 (latest)

rancid pine
#

I've tried yaml command
~yaml load:../../usercache.json id:usercache data_type:auto
But it says:

Invalid YAML object type: [{name=MrKingSkeleton, uuid=6a134b94-c4c5-476b-9d25-8e80ff614d22, expiresOn=2025-01-09 20:09:22 +0800}] is ArrayList

And:

  - ~fileread path:../../usercache.json save:usercache
  - narrate <entry[usercache].data.utf8_decode.parse_yaml>

Same error + stack trace
https://paste.denizenscript.com/View/128875

dusk fiberBOT
#

(mrskeleton) How to load usercache.json?

dusk fiberBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

rancid pine
#

It's working if I remove brackets [...]
.after[<&lb>].before[<&rb>]

Denizen can't parse json arrays?

#

Looks like bug to me

lilac ridge
#

!pasteyaml

lament windBOT
rancid pine
#
[{"name":"MrKingSkeleton","uuid":"6a134b94-c4c5-476b-9d25-8e80ff614d22","expiresOn":"2025-01-09 20:09:22 +0800"}]
rancid pine