HttpService:JSONEncode() alternative supporting Roblox-specific datatypes

As a Roblox developer, it is currently too hard to stringify roblox-specific datatypes.

If this issue is addressed, it would improve my development experience because it would be easier to work with external services, including my own, with data containing roblox-specific datatypes. (Perhaps HttpService:LuTN()?)

use cases:

  • external data storage for a building game

  • sending user builds over to an external website to see users’ creations in browsers.

By the way, I also think that :JSONEncode() should error when trying to encode roblox-specific types, as them getting nullified is clearly undesired.

(:LuTN() as in Luau Table Notation)

5 Likes