Skip to content

Instantly share code, notes, and snippets.

@eraserewind
Created March 8, 2014 15:47
Show Gist options
  • Save eraserewind/9433760 to your computer and use it in GitHub Desktop.
Save eraserewind/9433760 to your computer and use it in GitHub Desktop.
iex(22)> exif
[JPEGInterchangeFormatLength: [7164], JPEGInterchangeFormat: [862],
ResolutionUnit: [2], YResolution: [{72, 1}], XResolution: [{72, 1}],
Compression: [6], Software: ['Adobe Photoshop CS4 Macintosh'],
ResolutionUnit: [2], YResolution: [{2400000, 10000}],
XResolution: [{2400000, 10000}], Orientation: [1], Model: ['NIKON D80'],
Make: ['NIKON CORPORATION']]
iex(23)> JSON.encode(exif)
** (ArgumentError) argument error
:erlang.apply(72, :to_keywords, [])
lib/json/encoder.ex:208: JSON.Encoder.Tuple.to_json/2
lib/json/encoder.ex:12: JSON.Encode.it/2
lib/json.ex:12: JSON.encode!/2
lib/json/encoder.ex:105: anonymous fn/2 in JSON.Encoder.List.encode_array/3
(elixir) lib/enum.ex:875: Enum."-map/2-lc$^0/1-0-"/2
lib/json/encoder.ex:104: JSON.Encoder.List.encode_array/3
lib/json/encoder.ex:69: JSON.Encoder.List.to_json/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment