Skip to content

Object properties are not parsed correctly #12

Description

@lathspell

I have a JSON with the following property:

  ...
   "id" : 63,
   "primary_number" : {
      "ac" : "221",
      "cc" : "49",
      "sn" : "16804109"
   },
   "password" : "secret",
  ....

The JsonRepresentationReader class uses readProperties() to read these property but it only tests if the value is a JSON Arrays, in which case it creates an List, and else stores it as String.

In my example the correct behaviour for the "primary_number" property would be to check for a JSON Object and store that as HashMap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions