Fixed json.lua problems