few fixes in jsonintegration