Skip to content

{}= proc result is inconsistent with stdlib.json #3

@lbcheng888

Description

@lbcheng888
import packedjson
var cost = newJObject()
var rows = [["AWS","compute"],["AWS","network"],["Alibaba","compute"],["Alibaba","network"]]

for row in rows:
    cost{row[0],row[1]} = %(cost{row[0],row[1]}.getFloat + 1.0)
echo cost

change packedjson to json to see the expected result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions