theglasspenguin — 10/29/2022, 10:44:31 PM

can someone tell me how to use json? every other source on the internet is not helping

♥ 4 ↩ 1 💬 12 comments

comments

silly:

Just use apple shortcuts (please don’t oh god it’s a dumpster fire only use if if you’ve got a) no other real option like me or b) you want the apple overlords changing what certain blocks do)

10/30/2022, 8:51:30 AM
radi8: {"key": "string value", "bool key": true, "table key" : {"key": "value", "bool": false, "int": 42, "list": [false, "blåhaj", 42, {"key" : "value"}]}}
10/30/2022, 3:41:01 AM
theglasspenguin:

yes, i know, but how do you access it within the code?

10/30/2022, 5:17:40 AM
cst1229:

what language?

10/30/2022, 6:50:39 AM
theglasspenguin:

javascript (i already know how to use it in python)

10/30/2022, 6:07:23 PM
cst1229:

just use `JSON.parse()` with a json string as input and it returns an object

11/1/2022, 9:49:24 AM
theglasspenguin:

got it

11/1/2022, 2:14:55 PM
radi8:

ikd

10/31/2022, 2:06:21 PM
lily:

define “use json”

10/29/2022, 11:06:52 PM
theglasspenguin:

like load it and access it

10/29/2022, 11:56:24 PM
lily:

from a string:

JSON.parse(string);
10/30/2022, 8:14:34 AM
redstrider:

no thats php (haha no one will get this)

3/9/2026, 8:08:29 PM