support generic dict in data structure
manage json object serialization via a pyramid json renderer
fix some methods returning str instead of json, expect JSON as return for tests