Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.




Found in


Issue ID




JsonUtility does not serialize/deserialize DateTime formats



Repro steps:
1) Open the project and only scene in it
2) Play the scene
3) Inspect the Console - notice that no result is given in the WarningLog with serialized JSON object (see screenshot)

Reproduced in: 5.4.0b2; 5.3.1p3
No JSONUtility in previous versions

Comments (6)

  1. 529843c1e1b0ea9e589e1a578610bae0?d=mm


    Mar 12, 2018 15:47

    same issue with the last stable version of Unity, 2017.3. Check the example to reproduce this issue

  2. Ffd40da58868d12d646d78ff6d5ab04a?d=mm


    Jan 12, 2018 15:46

    The JsonUnility cannot decode even it's own encoded value. bool variable with FromJson fails for string "true"

  3. F554d5d7c36304d4d53bbb72d8927c97?d=mm


    Jun 01, 2017 18:07

    Please fix this! I spent a great deal of effort convincing the team to use JsonUtility instead of add ons, and this bug makes me look like a putz.

  4. Baebef2d9fd2453ded5f98320e6b5fdf?d=mm


    Nov 29, 2016 12:11

    There is a workaround for this.
    You can use a private string field for serialization then have a method to do the conversion:

    private string createdAt;
    private DateTime? _createdAt;

    public DateTime? CreatedAt ()
    if (_createdAt == null) {
    _createdAt = Convert.ToDateTime (createdAt);
    return _createdAt;

  5. 032ec58a1940f862905078927e6a8d71?d=mm


    Aug 07, 2016 16:46

    I've just started noticing the same issue. Only effects children of a parent object that also has DateTime as a type.

  6. Ec47ab52f9befc3f66b7c30d252b2811?d=mm


    Jun 18, 2016 00:24

    Please, please, please, get this fixed!

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.