Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Add ability to recognize datatype patterns #5

Open
rocktavious opened this issue Jul 2, 2019 · 0 comments
Open

Add ability to recognize datatype patterns #5

rocktavious opened this issue Jul 2, 2019 · 0 comments

Comments

@rocktavious
Copy link
Collaborator

rocktavious commented Jul 2, 2019

For example

{"John": {"age": 30, "position": {"x": 1.025468, "y": 2.1}, "rotation": {"x": 0, "y": 0, "z": 0, "w": 1}}}

If the library parsed that typeless information above it could probably detect the Vector2 and Vector4 with a little extra work - maybe an opt-in option. If a Object Container had excatly the keys ["x", "y"] where the values where Numbers then it should set the Object Container to Object Vector2 to allow the implicit conversions to work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant