Skip to content

Decompile handles JSON float values incorrectlyΒ #14323

Closed

Description

Example:

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "metadata": {
    "_generator": {
      "name": "bicep",
      "version": "0.28.2.57042",
      "templateHash": "10760674796665414523"
    }
  },
  "resources": [],
  "outputs": {
    "test": {
      "type": "object",
      "value": {
        "val": 0.1
      }
    }
  }
}

Is decompiled to:

output test object = {
  val: '0.1'
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions