Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

dumps

Description

Serialize the provided table into a string.

Arguments

1 table data

the data to serialize into a string.

Returns

1 string

the serialized data

Example

local serialized = bitser.dumps({{"this is my boomstick", gun = {ammo = 30, barrelQuality = 100, reliability = 0.9}}, someField = "someValue", anotherField = {valueOne = 123, valueTwo = "123"}})

print(serialized)