id=0 from equipment_pvp

id=0 from equipment_pvp

in API Development

Posted by: Elfo Bianco.3786

Elfo Bianco.3786

“equipment_pvp”: {
“amulet”: 0,
“rune”: 0,
“sigils”: [
null,
null,
null,
null
]
}

Working with the json above got from API:2/characters:id my App crashes because amulet and rune return a valid id=0 instead of null, but no id=0 exists in any API.
I know I can test a new condition with id!=0, but all empty items/slots should return a null value.

id=0 from equipment_pvp

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

Oops, good point. Tracking issue.