ee.String.serialize

  • serialize() returns a serialized (string) representation of a ComputedObject (like ee.String).

  • It accepts an optional legacy argument (boolean) to enable legacy formatting.

  • The primary use case is to obtain the serialized string of a ComputedObject, typically an ee.String.

Returns the serialized representation of this object.

UsageReturns
String.serialize(legacy)String
ArgumentTypeDetails
this: computedobjectComputedObjectThe ComputedObject instance.
legacyBoolean, optionalEnables legacy format.

Examples

Code Editor (JavaScript)

print('Serialized representation of ee.String', ee.String('earth').serialize());

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

import ee
import geemap.core as geemap

Colab (Python)

print('Serialized representation of ee.String:', ee.String('earth').serialize())