Json.decode broken in lua 5.4

I noticed that lua.decode returns nil when trying to decode a json compliant string while using lua 5.4 in fivem, has anyone found a solution for this?

Can you provide some actual code as to what you’re trying to do.

Are you sure that you are inputting valid json?
I believe I noticed the same thing a few months ago, but it tuned out I was relying on edge cases.

1 Like

I figured it out, i didnt use the correct outer brackets for the array. Thanks anyway.

1 Like