Skip to content

Commit

Permalink
Merge branch 'pu'
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Jul 24, 2010
2 parents 16f560e + baa97a7 commit 9a53dbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mochijson2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ json_encode(F, _State) when is_float(F) ->
mochinum:digits(F);
json_encode(S, State) when is_binary(S); is_atom(S) ->
json_encode_string(S, State);
json_encode([{_,_}|_] = Props, State) ->
json_encode([{K, _}|_] = Props, State) when (K =/= struct andalso
K =/= array andalso
K =/= json) ->
json_encode_proplist(Props, State);
json_encode({struct, Props}, State) when is_list(Props) ->
json_encode_proplist(Props, State);
Expand Down

0 comments on commit 9a53dbd

Please sign in to comment.