rwcarlsen / goexif

Decode embedded EXIF meta data from image files.
BSD 2-Clause "Simplified" License
627 stars 134 forks source link

JSON Encoding of Undefined #37

Open op opened 9 years ago

op commented 9 years ago

The current way of encoding Undefined is to try to print any utf-8 rune. I believe it would make sense to serialize Undefined as []byte through json.Marshal and let it encode it as base64. That way you could also remove the nullString function if #36 is merged.