Skip to content

Json produces invalid JSON output for integer keys #109

Open
@LinqLover

Description

@LinqLover
Dictionary new
	at: 1 put: 2;
	asJsonString --> '{1:2}'

What would be the expected behavior?

  • '{"1":2}'
  • raise an error: invalid key for json

What in this case?

Dictionary new
	at: 1 put: 2;
	at: '1' put: '2';
	asJsonString
  • '{"1":2}'
  • '{"1":"2"}'
  • raise an error: duplicate keys

My tendency would be the variants with a star ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[WHAT] Something isn't working as expected. Automated tests beneficial. :-tools and libraries[SCOPE] From #asTextToHtml over JSON parsing to Debugger and Browser.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions