local JSON = "*insert long JSON here*"
local decode = game:GetService("HttpService"):JSONDecode(JSON)
-- Tried:
print(decode.message.body.body_main.body_totally_main)
-- Also Tried
print(decode.body_main[7].body_totally_main)
{“message”:{“header”:{“status_code”:200,“execute_time”:0.012158870697021},“body”:{“body_main”:{“id”:23987514,“number”:0,“body_totally_main”:“THING TO GET”,“tracking_url”:“kx_1I1c8oPLwkt3cCLvi9Qq4REbQRmIyi_rS26L5r9de5hS_bSA4BbJ0Tn8HrEb80oPSTM09tJVcZUATadtY8zyKAWUeFickPsjngOIKpyYxn-sQFH4_OJII9OS21EHljHsqXAmYjIbVwkB8MxyGl6jz6ZmH8PRfKULu_jK2OJV1k/”,“copyright”:“Powered by www.nothing.com. This is NOT for Commercial use.”,“updated_time”:“2022-07-28T23:41:59Z”}}}}
Keep in mind that I removed private information from the JSON.
local json = [[{“message”:{“header”:{“status_code”:200,“execute_time”:0.012158870697021},“body”:{“body_main”:{“id”:23987514,“number”:0,“body_totally_main”:“THING TO GET”,“tracking_url”:“kx_1I1c8oPLwkt3cCLvi9Qq4REbQRmIyi_rS26L5r9de5hS_bSA4BbJ0Tn8HrEb80oPSTM09tJVcZUATadtY8zyKAWUeFickPsjngOIKpyYxn-sQFH4_OJII9OS21EHljHsqXAmYjIbVwkB8MxyGl6jz6ZmH8PRfKULu_jK2OJV1k/”,“copyright”:“Powered by www.nothing.com. This is NOT for Commercial use.”,“updated_time”:“2022-07-28T23:41:59Z”}}}}]]
json = string.gsub(json,'“','"')
json = string.gsub(json,'”','"')
local httpService = game:GetService('HttpService')
local decoded = httpService:JSONDecode(json)
print(decoded)
print(decoded.message.body.body_main.body_totally_main)
It may be a Roblox specific thing. Those quotes are specifically for things like word documents for the fancy open/close quotes. Roblox probably doesn’t support those as normal quotes as they have a different ascii.
To be more specific, it’s the fault of the IDE probably.