greyarea/props — pull request #1 by Mistagrooves (2012-04-11 18:50:27+00:00)
Title: Handle converting empty mochijson2 objects properly.

Return new props objects when decoding empty structures instead of crashing. Handles empty objects in deep structures properly as well.

Before:
props:from_mochijson2({struct, []}).
** exception error: no function clause matching props:do_set({fail,{expected,{character_class,"[_a-zA-Z0-9]"},
{{line,1},{column,1}}}},
{[]},
{[]}) (src/props.erl, line 137)
After:
props:from_mochijson2({struct, []}).
{[]}