Httpservice:JSONEncode now erroring

I’ve been using this for the past month and it has worked perfectly fine. Now I keep getting the error “Can’t convert to JSON”. I never updated my game or anything. This also just started happening today.

Could you try dumping out the value that you’re trying to convert before doing the conversion?

Here’s a function to do such a table dump nicely if you need one:

It’s unlikely that the JSON function is broken, it’s probably some other change that’s causing you to incorrectly pass some sort of Roblox object to the JSON Encode function.

I seemed to have fixed it. It was encoding a very long string so I decreased the size of it and now it seems to work. Is there some kind of limit to how long a string can be to be encoded?