Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/Simple/JSON.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
jsx:decode(S, [return_maps])
end.

% This is a lie for sure, but there is no such thing as undefined in JSON, the JS version relies on objects
% containing properties with undefined values to be omitted, while we would have to recurse here before passing
% to JSX to remove them or
'_undefined'() -> null.
'_undefined'() -> undefined.

stringifyJSON(J) -> jsx:encode(remove_undefined(J)).

Expand Down