sile / jsone

Erlang JSON library
MIT License
291 stars 72 forks source link

Datetime is not allowed as head of array #12

Closed pichi closed 8 years ago

pichi commented 8 years ago
1> jsone:encode([{{2015,6,25},{14,57,25}}]).       
** exception error: bad argument
     in function  jsone_encode:object_key/4
        called as jsone_encode:object_key({2015,6,25},
                                          [{object_value,{14,57,25},[]}],
                                          <<"{">>,
                                          {encode_opt_v2,false,
                                                         [{scientific,20}],
                                                         {iso8601,0},
                                                         string,0,0})
     in call from jsone:encode/2 (/home/hynek/work/altworx/jsone/_build/default/lib/jsone/src/jsone.erl, line 306)