update json with correct cql