Api: ~12/11 - The manifest will start including JSON-formatted Destiny definitions

Created on 22 Nov 2018  Â·  5Comments  Â·  Source: Bungie-net/api

Heads up!

In our first major December deployment, we will start including JSON-formatted Destiny definitions, in addition to the existing SQLite database that is already included. The SQLite database will continue to exist alongside the JSON definitions.

The JSON definitions will come as one single file, formatted as a large object following this schema:

{ "DestinyInventoryItemDefinition": { "362514080": { "displayProperties": { "description": "", "name": "Common Gear", "icon": "/common/destiny2_content/icons/399ff8844f8a4ec8301143efb680aa35.jpg", "hasIcon": true } // etc } } }

You will start seeing a new property in the manifest result entitled jsonWorldContentPaths, which will be similar to the SQLite property that is already there.

Speak up if you have questions or comments!

definitions ready for release rfc

Most helpful comment

@lowlines As it is, it's one JSON file that includes all definitions. After compression, it currently clocks in around 5.2mb.

All 5 comments

That's one json file for each definition table correct? The InventoryItem table must be huge!

@lowlines As it is, it's one JSON file that includes all definitions. After compression, it currently clocks in around 5.2mb.

What do you think the chances are of having per-table JSON files? If there was a chance to not download all the tables, I think that would be a win (especially if you're not interested in InventoryItems!

That was my thought as well. I seldom need every single table — most of my projects only involve 3-4 at the most. One JSON file per table seems like a more logical arrangement to me, but I assume you guys had some rationale for combining them all into one.

FWIW, while at first I was excited about the prospect of being able to strip out the messy sqlite manifest processing portion of my projects’ code, I don’t think I’ll end up migrating them to use the new file, as I worry that parsing a huge 5mb JSON would put more memory load etc on my system than the current implementation involving SQLite.

Fixed as of v2.3.3 deployment (12/11)!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

justrealmilk picture justrealmilk  Â·  3Comments

queuebit picture queuebit  Â·  3Comments

andyschott picture andyschott  Â·  3Comments

gitFurious picture gitFurious  Â·  3Comments

ChaseMalik picture ChaseMalik  Â·  4Comments