Handle duplicate keys when parsing json

Check for existing keys in parsed object and overwrite duplicates.

Closes #10