The below fails with the same error.
    
    
    type
      DateTime* = string
    
    response = """
    {
      "datetime":"2016-06-22T18:41:36.042678456Z"
    }
    """
    
    var data = parseJson(response)
    echo(to(data, DateTime))
    
    
    Run

If I am doing something wrong. I am okay with that. But I don't see what it is.

I have this app mostly written in Python. I might simply need to finish version 
1 with Python and revisit Nim when I have more time to be better at Nim.

I am in complete control of my app and all client side code. The only thing I 
don't control over is the REST api coming from the third party servers. I am a 
consumer and also producer of json to them in the requests.

Thanks for your help.

Reply via email to