Commits

Bryan Fink  committed d8812d2

copy {struct, []} re-wrapping fix from erlang_js

  • Participants
  • Parent commits 35e48d4

Comments (0)

Files changed (1)

File apps/erlang_js/src/js_json.erl

 is_structable([]) ->
     false;
 is_structable([H|_]) ->
-    is_tuple(H) andalso size(H) == 2.
+    is_tuple(H) andalso size(H) == 2 andalso element(1,H) /= struct.
 
 %% testing constructs borrowed from the Yaws JSON implementation.