Development with AWS Services
Which operation converts an in-memory order object into a JSON string suitable for an Amazon SQS message body?
Show the answer
Correct answerB. JSON serialization
AWhy not this: Deserialization converts serialized data into an in-memory representation, reversing the required direction.
BWhy this is right: Serialization converts an in-memory object into JSON text suitable for the SQS message body.
CWhy not this: Schema inference derives a structural description from data rather than producing the message body.
DWhy not this: Validation checks whether data satisfies syntax or schema rules; it does not convert an object to a JSON string.
JSON serialization converts an in-memory object into a JSON representation that can be transmitted as a message body. Deserialization performs the reverse conversion, reconstructing an object from serialized data.