Fixing wrong json format