Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Json #58

Open
nickhudson4 opened this issue Jun 16, 2023 · 1 comment
Open

Invalid Json #58

nickhudson4 opened this issue Jun 16, 2023 · 1 comment

Comments

@nickhudson4
Copy link

When serializing to JSON, it appears to return invalid JSON. For instance with this snippet of JSON

"SceneCamera": {
        "$id": 3,
        "$type": "4|Battlehub.RTSL.PersistentTransform, Battlehub.RTEditor",
        "position": {
            "$type": "5|UnityEngine.Vector3, UnityEngine.CoreModule",
            10,
            10,
            -10
        },
        "rotation": {
            "$type": "6|UnityEngine.Quaternion, UnityEngine.CoreModule",
            0.279848158,
            -0.3647052,
            0.1159169,
            0.8804763
        },
        "scale": {
            "$type": 5,
            1,
            1,
            1
        }
    }

I will get errors like "Expected string not a float" for the position, rotation, and scale blocks. I get this same error when trying to use any json reader/ formatter.

I will say that everything works as expected with Odin. I would still expect it to serialize valid json though in the case I need to use a 3rd party parser or reader.

@Alvarden15
Copy link

Yeah, just a warning as someone who used the asset: don't use the json serializer. It's still bugged and hasn't been fixed yet.

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

No branches or pull requests

2 participants