Bug: Empty arrays converted to empty objects

An empty array [] gets converted to an empty object {}, when it should be kept as an array. E.g.:

// Input:
[]
// Output:
{}

// Input:
{"foo": []}
// Output:
{"foo": {}}

Dennis

Please authenticate to join the conversation.

Upvoters
Status

Under Review

Board

πŸ“‘ json.pub

Date

About 2 hours ago

Subscribe to post

Get notified by email when there are changes.