Skip to content

String values "YES" and "NO" converted to Boolean #4

@alexhass

Description

@alexhass

We found a bug. If a string has a value "NO" what is ISO code of Norwegian it get's converted to "false". This is not correct and should be kept as is as it is a string.

  // Set up our serializer, setting up the key-casing and the value
  // conversion rules.
  serializer = new lib.JsonSerializer()
    .asString( "isoCode" )
  ;

  // Imagine that these keys are all upper-case because they came
  // out of a database (or some other source in which the keys may
  // have been entered without proper casing).
  country = {
    ISOCODE = "NO",
  };

The string must not change as it is a string and not boolean. Any idea how this can be solved in CF10?

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