Skip to main content
Skip table of contents

extendedJSONToClass() Operation

Syntax

set anObject = aString.extendedJSONToClass()
set anObject = extendedJSONToClass(literal)

Semantics

The operation extendedJSONToClass() takes an Extended JSON string (aString) and tries to map it to anObject. If this is not possible, an error is raised.

By default, the following mapping rules apply:

  • Extended JSON attributes are mapped to class attributes having the same name.

  • Attributes not defined in the target class are ignored.

For more mapping details refer to JSON Type Mapping. These details also refer to Extended JSON.

Substitutables

aString

An Extended JSON document as String.

anObject

Target object, can be any object.

literal

String literal.

Examples

NONE
set myAddress = mongoDbDocument.extendedJSONToClass();

See jsonToClass() Operation for more examples.

For more information on Extended JSON refer to MongoDB Extended JSON.

MongoDBAdapter_CustomerData_Example

Click here to download a simple example model that shows the usage of the MongoDB adapter in Scheer PAS Designer.

Related Documentation:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.