Comments (2)
While I realise it's maybe not ideal, duplicate keys are preserved in the internal model and the serialized json. I'm not sure what code you're using that would be removing them.
This is the serialized version of the file you're referring to:
My view is that there's not really an easy to way to solve this. The structure in the assets has duplicate keys, and there's not really a way to be consistent about guessing when to use an array and when not to - the only solution is to always use an array when there could maybe be duplicate keys. Otherwise, only using an array when theres >1 items would result in a pretty inconsistent schema.
So while it's maybe not the best solution, the current system seems to be the least worst option. It just may take some doing to make sure that code realises that there is non-standard stuff going on.
from johnwickparse.
Hey, thanks for the reply, you are correct, the missing key:value sets are not due to the project, apparently the JSON formatter in Sublime is destructive and got rid of the duplicates..so yeah that was very unexpected. 😮 Sorry for the misinformation.
I'd still say that duplicate names is rather bad since JSON is not supposed to have them according to the specification, but if you feel like it is not worth the trouble that is fine. :)
I can just add a middle step to give the raw exported JSON some "massage"/sanity check to reformat it to correct JSON. As long as the exported data has all the information, which it has, I'm happy. :)
Thanks again, very helpful project! Feel free to close the issue if it is 'working as expected'.
Cheers!
from johnwickparse.
Related Issues (20)
- FPackageIndex::get_package for index>0 ? HOT 3
- consecutive underscores HOT 5
- Documentation HOT 1
- Serializing Blueprints Errors HOT 5
- Some errors HOT 11
- Could not read MapProperty with types: ObjectProperty ObjectProperty HOT 2
- Error while attempting to serialize: paks/global.utoc? HOT 2
- Serializing Material Trips on Reference to "LinearGradient" HOT 4
- Property Error when trying to extract pakchunk100x HOT 1
- FRichCurveKey missing "value" HOT 1
- File Error: The system cannot find the path specified. (os error 3) HOT 2
- Errors when attempting to serialize Functions
- Property Error on what should be cooked json files. HOT 1
- please help me HOT 1
- extract command fails to extract files HOT 1
- I want to extract uasset files
- Use one command line for an entire folder HOT 1
- .uasset HOT 4
- Serializing blueprints HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from johnwickparse.