more fixes to smartjson
smart json not so smart after all...