CycloneDX / CycloneDX/cyclonedx-php-library

JSON normalizers returns object instead of associative arrays

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
breaking change QA
Dominant language
PHP
Stars
13
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Json normalizers returns object of stdClass instead of associative arrays
- therefore revisit the serializes in general and simplify them !

benefit:
- distinguish key-value stores from lists: lists/sets are arrays, key/value-stores are objects
- this will help typing a lot !

Contributor guide

Open the contributing guide

Research direction

Start by locating the JSON normalizers and the serializers mentioned in the issue, then inspect how their outputs distinguish objects from lists. Done means the normalizers return associative arrays where appropriate, while lists and sets remain arrays; the broader serializer simplification still needs definition.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend-api-design
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.