Hoppa till huvudinnehållet

Set serialization options for JSON in a server workflow

Kommentarer

3 kommentarer

  • Ken Lyon

    It might be something to do with the data type of the number.

    I tested the .NET version of Convert To Json and found that 1 (integer) and 1.0 (double) both serialized to 1 but 1.0m (decimal) serialized to 1.0.

    In a Server Workflow, you could use the Convert Value to ArcGIS Field Type activity to ensure a value is the desired numeric type. Hopefully that can suppress the “.0” ending in the serialization.

    0
  • Berend Veldkamp

    I spoke too soon. It looks like issue 361582 may have fixed this already in 5.50?

    0
  • Ken Lyon

    Yes, that certainly looks like the scenario you're describing.

    0

Du måste logga in om du vill lämna en kommentar.