Skip to content

deserializeArray returns undefined when called on an empty array #10

@jongunter

Description

@jongunter

Hi, is this intended behavior?

  class Example {
      hello = null;
      world = null;
    }
    const helloJson = []
    const result = ObjectMapper.deserializeArray(Order, helloJson);

    // expected []
    // was undefined
    console.log(result);

If not, it should be fixed. If so, it should be documented, as it seems like it could cause confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions