• Hello
Search Results for

    Show / Hide Table of Contents

    FAQ

    These answers are for saving and loading protected primitives as JSON.

    Unity's own JSON utility works with the protected types. Newtonsoft.Json and System.Text.Json need a small converter script, or a loaded value comes back wrong.

    You use What to do
    Unity JsonUtility Nothing extra. It works.
    Newtonsoft.Json Copy the two scripts on that page.
    System.Text.Json Copy the two scripts on that page.

    Back to the Protected primitives page.

    In This Article
    Back to top GuardingPearSoftware documentation