Fix end case where value can be a dictionary.

(and not a string of a json)
Merge pull request #43 from tadpol/valueIsDict

Fix end case where value can be a dictionary.