I'm calling a older api, and its returning objects in the form of.
{ value: 1, time: "/Date(1412321990000)/" }
Using a struct defined with
type Values struct{
Value int
Time time.Time
}
Gives me a &time.ParseError. I'm a beginner at Go, is there a way for me to define how this should be serialized/deserialized?. Ultimately I do want it as a time.Time object.
This date format seems to be an older .NET format too. Can't really get the output changed either.