Permalink
Browse files

empty array bug in json parse found by juhani and fixed by gaspar

git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1000 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
1 parent 7851406 commit f0ec0e16312d51c010cf7b17db31466d7f138314 @klacke committed Aug 23, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/json.erl
View
2 src/json.erl
@@ -475,7 +475,7 @@ parse_object2(Obj, S, C, Kv) ->
parse_array(C, Kv) ->
get_token(C, fun
(eof, C2) -> {done, {error, premature_eof}, C2};
- (rsbrace, C2) -> Kv({}, C2); % empty array
+ (rsbrace, C2) -> Kv({array, []}, C2); % empty array
(T, C2) -> parse_array([], T, C2, Kv)
end).

0 comments on commit f0ec0e1

Please sign in to comment.