EncodingService

Turn tables into JSON and back, and pack bytes as base64, from any script.

EncodingService is a service in Root's Services, which can't be moved or deleted; get it with game:GetService("EncodingService"). JSONEncode takes nil, booleans, numbers, strings, lists and string-keyed tables (keys sorted), and JSONDecode reads JSON back. Base64Encode and Base64Decode work on buffers.

Instancenot insertableServices

Methods

NameArgumentsReturnsDescription
Base64Decode(data: buffer)buffer
Base64Encode(data: buffer)buffer
JSONDecode(json: string)any
JSONEncode(value: any)stringEncodes nil, booleans, numbers, strings, lists and string-keyed tables as JSON, with keys sorted.
From Instance 22